25 lines
661 B
Plaintext
25 lines
661 B
Plaintext
|
FROM ubuntu:latest
|
||
|
|
||
|
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
|
||
|
RUN pip3 install opencv-python
|
||
|
RUN pip3 install pytesseract
|
||
|
RUN pip3 install PyMuPDF
|
||
|
RUN pip3 install fastapi
|
||
|
RUN pip3 install python-multipart
|
||
|
RUN pip3 install uvicorn
|
||
|
|
||
|
# Expose the port 8000 in which our application runs
|
||
|
EXPOSE 8000
|
||
|
# Stwórzmy w kontenerze (jeśli nie istnieje) katalog /app i przejdźmy do niego (wszystkie kolejne polecenia RUN, CMD, ENTRYPOINT, COPY i ADD będą w nim wykonywane)
|
||
|
WORKDIR /app
|
||
|
|
||
|
COPY main.py .
|
||
|
|
||
|
CMD ["uvicorn", "--host", "0.0.0.0", "--port", "8000", "main:app"]
|
||
|
|
||
|
|
||
|
|