From 790f3d07d5a317b2904ab521d7e5c33bbccdc0cb Mon Sep 17 00:00:00 2001 From: UrloMythus Date: Wed, 24 Sep 2025 21:38:35 +0200 Subject: [PATCH] Added Back Dockerfile --- Dockerfile | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100644 Dockerfile diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 0000000..f70a4dc --- /dev/null +++ b/Dockerfile @@ -0,0 +1,17 @@ +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 --host 0.0.0.0 --port $PORT --workers 4 \ No newline at end of file