Files
wetter2oag/Dockerfile
T
admin 396587554a Fix: Version aus APP_VERSION-Env statt pyproject.toml lesen
pyproject.toml wird nicht ins Docker-Image kopiert und war zur Laufzeit
nicht vorhanden. deploy.sh übergibt VERSION bereits als Build-Arg,
das jetzt als ENV APP_VERSION im Image gesetzt wird.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-05-26 11:46:49 +02:00

16 lines
244 B
Docker

FROM python:3.12-slim
WORKDIR /app
COPY requirements.txt .
RUN pip install --no-cache-dir -r requirements.txt
ARG VERSION=unknown
ENV APP_VERSION=${VERSION}
COPY weather_report.py .
RUN mkdir -p images
CMD ["python", "weather_report.py"]