footer und AppVersion eingebaut
All checks were successful
Docker Release Build / push_to_registry (push) Successful in 1m2s
All checks were successful
Docker Release Build / push_to_registry (push) Successful in 1m2s
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user