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

This commit is contained in:
Florian.Walther committed 2026-05-02 16:04:54 +02:00
1 parent a08b30b02f
commit e215b1d3b6
2 files changed
+11 -4

No files matched your search

+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