Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 5 additions & 3 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -13,9 +13,11 @@ WORKDIR /app

# Build-time git metadata for the footer. The build context excludes
# `.git` (see .dockerignore), so `build.rs` can't shell out to git here.
# The deploy passes these as build args instead; Coolify auto-injects
# `SOURCE_COMMIT`. Set GIT_BRANCH as a build arg in Coolify (e.g. `main`).
ARG GIT_BRANCH=unknown
# Production only ever deploys `main`, so default the branch to `main`
# (override with `--build-arg GIT_BRANCH=...` for a one-off branch build).
# The commit comes from Coolify's auto-injected `SOURCE_COMMIT`; set
# `GIT_HASH` explicitly to override it.
ARG GIT_BRANCH=main
ARG GIT_HASH=
ARG SOURCE_COMMIT=
ENV GIT_BRANCH=${GIT_BRANCH} \
Expand Down
Loading