Files
MammaMia/Dockerfile
T
2025-09-24 21:44:46 +02:00

18 lines
441 B
Docker

FROM python:3.11-slim-bullseye
WORKDIR /app
ADD . /app
RUN apt-get update && \
apt-get install -y tesseract-ocr libtesseract-dev && \
apt-get clean && \
rm -rf /var/lib/apt/lists/*
RUN pip install --no-cache-dir -r requirements.txt
RUN pip install --no-cache-dir pytesseract
EXPOSE 8080
# Run run.py when the container launches
ENTRYPOINT ["uvicorn", "run:app"]
CMD ["--host", "0.0.0.0", "--port", "$PORT", "--workers", "4"]