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>
This commit is contained in:
rxf
2026-05-26 11:46:49 +02:00
parent d12228e662
commit 396587554a
2 changed files with 4 additions and 5 deletions
+3
View File
@@ -5,6 +5,9 @@ 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