20 lines
407 B
Docker
20 lines
407 B
Docker
FROM python:3.11-slim
|
|
|
|
# Installiere Tesseract + Abhängigkeiten
|
|
RUN apt-get update && apt-get install -y \
|
|
tesseract-ocr \
|
|
tesseract-ocr-deu \
|
|
libglib2.0-0 \
|
|
libsm6 \
|
|
libxrender1 \
|
|
libxext6 \
|
|
&& apt-get clean \
|
|
&& rm -rf /var/lib/apt/lists/*
|
|
|
|
WORKDIR /app
|
|
COPY app/ /app
|
|
COPY app/requirements.txt ./
|
|
|
|
RUN pip install --no-cache-dir -r requirements.txt
|
|
|
|
CMD ["python3", "main.py"] |