add dockerfile

This commit is contained in:
Szymon Parafiński 2023-01-30 15:50:16 +01:00
parent 4039f78237
commit ca21ffaaee

View File

@ -1,14 +1,7 @@
FROM ubuntu:latest FROM python:3.8
COPY api.py requirements.txt ./ COPY api.py requirements.txt ./
RUN apt-get update -y RUN apt-get update
RUN apt-get install -y libgl1-mesa-glx RUN apt-get install -y default-jdk
RUN apt-get install -y tesseract-ocr-pol
RUN apt-get install -y python3-pip
EXPOSE 80:8000/tcp
RUN pip install -r requirements.txt RUN pip install -r requirements.txt
EXPOSE 80:8000/tcp
CMD python api.py CMD python api.py