added footer and app_version
Docker Release Build / push_to_registry (push) Successful in 54s

This commit is contained in:
2026-05-02 16:04:54 +02:00
parent a08b30b02f
commit e215b1d3b6
2 changed files with 11 additions and 4 deletions
+3 -2
View File
@@ -11,8 +11,9 @@ RUN go mod download
# Copy source code
COPY . .
# Build statically
RUN CGO_ENABLED=0 GOOS=linux go build -ldflags='-w -s' -o mdhost .
# Build statically with version
ARG APP_VERSION=dev
RUN CGO_ENABLED=0 GOOS=linux go build -ldflags="-w -s -X main.version=${APP_VERSION}" -o mdhost .
# Final scratch image
FROM scratch