From 2650efe1381e9deb2153e340af82043d0b6a4a63 Mon Sep 17 00:00:00 2001 From: UrloMythus Date: Thu, 4 Sep 2025 16:41:07 +0200 Subject: [PATCH] Modify dockerfiles to use bullseye --- Dockerfiles/Dockerfile-auto-update | 2 +- Dockerfiles/Dockerfile-auto-update-no-config | 2 +- Dockerfiles/Dockerfile-es | 26 ++++++++++++++++++++ 3 files changed, 28 insertions(+), 2 deletions(-) create mode 100644 Dockerfiles/Dockerfile-es diff --git a/Dockerfiles/Dockerfile-auto-update b/Dockerfiles/Dockerfile-auto-update index 6ca6ff6..0b2d8ee 100644 --- a/Dockerfiles/Dockerfile-auto-update +++ b/Dockerfiles/Dockerfile-auto-update @@ -1,5 +1,5 @@ ##Use an official Python runtime as a parent image -FROM python:3.10-slim-buster +FROM python:3.11-slim-bullseye # Set the working directory in the container to /app WORKDIR /app diff --git a/Dockerfiles/Dockerfile-auto-update-no-config b/Dockerfiles/Dockerfile-auto-update-no-config index 7b0fcfc..a55b6de 100644 --- a/Dockerfiles/Dockerfile-auto-update-no-config +++ b/Dockerfiles/Dockerfile-auto-update-no-config @@ -1,5 +1,5 @@ #Use an official Python runtime as a parent image -FROM python:3.10-slim-buster +FROM python:3.11-slim-bullseye # Set the working directory in the container to /app WORKDIR /app diff --git a/Dockerfiles/Dockerfile-es b/Dockerfiles/Dockerfile-es new file mode 100644 index 0000000..8e2b004 --- /dev/null +++ b/Dockerfiles/Dockerfile-es @@ -0,0 +1,26 @@ +# Use an official Python runtime as a parent image +FROM python:3.11-slim-bullseye + +# Set the working directory in the container to /app +WORKDIR /app + +# Install necessary packages including git and Tesseract OCR +RUN apt-get update && \ + apt-get install -y git tesseract-ocr libtesseract-dev && \ + apt-get clean && \ + rm -rf /var/lib/apt/lists/* + +# Clone the repository +RUN git clone https://github.com/UrloMythus/MammaMia.git . + +# Install any needed packages specified in requirements.txt +RUN pip install --no-cache-dir -r requirements.txt + +# Install pytesseract +RUN pip install --no-cache-dir pytesseract + +# Expose the port, for now default is 8080 cause it's the only one really allowed by HuggingFace +EXPOSE 8080 + +# Run run.py when the container launches +CMD ["python", "run.py"] \ No newline at end of file