20 lines
461 B
Docker
20 lines
461 B
Docker
FROM python:3.9
|
|
|
|
RUN mkdir -p /usr/src/app
|
|
WORKDIR /usr/src/app
|
|
|
|
RUN apt-get update && apt-get install python3-pil tesseract-ocr libtesseract-dev tesseract-ocr-eng tesseract-ocr-slv tesseract-ocr-script-latn ffmpeg libsm6 libxext6 libgl1 libmagic1 -y
|
|
|
|
COPY requirements.txt /usr/src/app/
|
|
|
|
# RUN pip install --upgrade pip
|
|
RUN pip3 install --no-cache-dir -r requirements.txt
|
|
|
|
COPY . /usr/src/app
|
|
|
|
EXPOSE 8080
|
|
|
|
ENTRYPOINT ["python3"]
|
|
|
|
CMD ["-m", "swagger_server"]
|