All images and camera status arrive via the Gundi push since 2026-10-16. Drop the melesicumover service from docker-compose.yaml, make the receiver the image's default command and mark the poller docs as historical. main.py stays as the library the receiver imports. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
30 lines
843 B
Docker
30 lines
843 B
Docker
FROM python:3.11-slim
|
|
|
|
ENV PYTHONDONTWRITEBYTECODE=1 \
|
|
PYTHONUNBUFFERED=1
|
|
|
|
RUN apt-get update && apt-get install -y --no-install-recommends \
|
|
tesseract-ocr \
|
|
libtesseract-dev \
|
|
libimage-exiftool-perl \
|
|
ca-certificates \
|
|
&& rm -rf /var/lib/apt/lists/*
|
|
|
|
WORKDIR /app
|
|
|
|
COPY requirements.txt /app/requirements.txt
|
|
RUN pip install --no-cache-dir -r /app/requirements.txt
|
|
|
|
# Code + nicht-geheime Konfiguration ins Image (Secrets kommen zur Laufzeit via ENV).
|
|
COPY main.py gundi_pipeline.py gundi_receiver.py /app/
|
|
COPY schema/ /app/schema/
|
|
COPY tools/ /app/tools/
|
|
COPY config.yaml /app/config.yaml
|
|
|
|
# Haertung: nicht als root laufen.
|
|
RUN useradd --create-home --uid 10001 appuser
|
|
USER appuser
|
|
|
|
# Standard ist der Gundi-Receiver; der S3-Poller (main.py) ist seit 2026-10-16 stillgelegt.
|
|
CMD ["python", "/app/gundi_receiver.py"]
|