We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 925b763 commit d049c3bCopy full SHA for d049c3b
Dockerfile
@@ -2,23 +2,23 @@ FROM golang:1.23.4-alpine AS builder
2
3
WORKDIR /app
4
5
-COPY go.mod go.sum ./
6
-RUN go mod download
+COPY main.go go.mod go.sum ./
+COPY internal/ ./internal/
7
8
-COPY . .
+RUN go mod download
9
10
RUN CGO_ENABLED=0 GOOS=linux go build -o checkmate
11
12
-# Final stage using distroless
13
FROM gcr.io/distroless/static-debian12:nonroot
14
15
16
17
COPY --from=builder /app/checkmate .
+COPY examples/config.yaml /app/config.yaml
18
19
USER nonroot:nonroot
20
21
# Expose Prometheus/healthcheck port
22
EXPOSE 9100
23
24
-ENTRYPOINT ["/app/checkmate"]
+ENTRYPOINT ["/app/checkmate", "/app/config.yaml"]
0 commit comments