396587554a
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>
16 lines
244 B
Docker
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"]
|