footer und AppVersion eingebaut
All checks were successful
Docker Release Build / push_to_registry (push) Successful in 1m2s

This commit is contained in:
Florian Walther
2026-02-07 16:45:02 +01:00
parent dd8eab7975
commit c9296beb5f
5 changed files with 55 additions and 6 deletions

View File

@@ -8,7 +8,8 @@ WORKDIR /app
COPY . .
# Baue die Anwendung
RUN CGO_ENABLED=0 GOOS=linux go build -ldflags="-s -w" -o /app/password-generator
ARG APP_VERSION=dev
RUN CGO_ENABLED=0 GOOS=linux go build -ldflags="-s -w -X 'main.AppVersion=${APP_VERSION}'" -o /app/password-generator
# Verwende ein minimales Image für die finale Stage
FROM scratch