Changeset 0.7.0.13 (#38)

This commit is contained in:
2026-02-21 13:53:36 +00:00
parent a95e246cd7
commit b72bfbb5b4
10 changed files with 42 additions and 20 deletions

View File

@@ -8,6 +8,8 @@
# Build stage
FROM golang:1.22-bookworm AS builder
ARG APP_VERSION=dev
WORKDIR /app
# Copy module files and download deps
@@ -17,7 +19,7 @@ RUN go mod download
# Copy source and tidy (resolves any go.sum gaps)
COPY . .
RUN go mod tidy
RUN CGO_ENABLED=0 go build -ldflags="-s -w" -o /bin/switchboard .
RUN CGO_ENABLED=0 go build -ldflags="-s -w -X main.Version=${APP_VERSION}" -o /bin/switchboard .
# Runtime stage
FROM debian:bookworm-slim