fix: bake APP_VERSION into image as build arg instead of runtime env
All checks were successful
Deploy / deploy (push) Successful in 13s

- Dockerfile: ARG/ENV APP_VERSION, copies VERSION file
- compose: passes build arg, removes runtime env var
- webui: reads VERSION file as fallback if env not set
- deploy: explicit build step with --build-arg

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
Claude
2026-03-08 11:58:14 +01:00
parent 89d21408e6
commit a1ec0e482b
4 changed files with 18 additions and 6 deletions

View File

@@ -16,9 +16,12 @@ ENV GIT_AUTHOR_NAME=outline-sync \
RUN git config --global user.email "sync@local" && \
git config --global user.name "outline-sync"
ARG APP_VERSION=dev
ENV APP_VERSION=${APP_VERSION}
WORKDIR /work
COPY outline_sync.py webui.py entrypoint.sh ./
COPY outline_sync.py webui.py entrypoint.sh VERSION ./
RUN chmod +x entrypoint.sh
# Initialise vault with both branches needed by outline_sync.py