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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user