From ca21ffaaeef5923ef7ea6201b9e3d7fe8010125e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Szymon=20Parafin=CC=81ski?= Date: Mon, 30 Jan 2023 15:50:16 +0100 Subject: [PATCH] add dockerfile --- dockerfile | 17 +++++------------ 1 file changed, 5 insertions(+), 12 deletions(-) diff --git a/dockerfile b/dockerfile index 18cee45..eaaf007 100644 --- a/dockerfile +++ b/dockerfile @@ -1,14 +1,7 @@ -FROM ubuntu:latest - +FROM python:3.8 COPY api.py requirements.txt ./ -RUN apt-get update -y -RUN apt-get install -y libgl1-mesa-glx -RUN apt-get install -y tesseract-ocr-pol -RUN apt-get install -y python3-pip - -EXPOSE 80:8000/tcp +RUN apt-get update +RUN apt-get install -y default-jdk RUN pip install -r requirements.txt - -CMD python api.py - - +EXPOSE 80:8000/tcp +CMD python api.py \ No newline at end of file