FROM python:3.11-alpine WORKDIR /app RUN apk add --no-cache \ gcc \ musl-dev \ libffi-dev \ python3-dev \ tesseract-ocr \ tesseract-ocr-data-deu \ tesseract-ocr-data-eng \ ghostscript \ qpdf \ pngquant \ leptonica \ openjpeg \ libgomp RUN pip install gunicorn COPY requirements.txt . RUN pip install --no-cache-dir -r requirements.txt COPY . . CMD ["gunicorn", "--timeout", "600", "--bind", "0.0.0.0:5000", "--workers", "2", "app:app"]