Files
vantage/server/Dockerfile
T
domrichardson fab87c82c6
Server Deploy / deploy (push) Successful in 2m10s
Agent Release / build (push) Successful in 1m12s
feat: Updated brand to be vantage
2026-06-24 15:48:13 +01:00

25 lines
505 B
Docker

# Build stage
FROM golang:1.26 AS builder
WORKDIR /app
# Download dependencies first (layer cache)
COPY go.mod go.sum ./
RUN go mod download
# Copy source and build
COPY . .
ARG VERSION=dev
RUN CGO_ENABLED=0 GOOS=linux go build -ldflags="-s -w -X main.Version=${VERSION}" -o /vantage-server ./cmd
# Runtime stage
FROM scratch
COPY --from=builder /etc/ssl/certs/ca-certificates.crt /etc/ssl/certs/
COPY --from=builder /vantage-server /vantage-server
EXPOSE 8080 9090
ENTRYPOINT ["/vantage-server"]