Skip to content

Commit d049c3b

Browse files
committed
chore: update dockerfile
1 parent 925b763 commit d049c3b

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

Dockerfile

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2,23 +2,23 @@ FROM golang:1.23.4-alpine AS builder
22

33
WORKDIR /app
44

5-
COPY go.mod go.sum ./
6-
RUN go mod download
5+
COPY main.go go.mod go.sum ./
6+
COPY internal/ ./internal/
77

8-
COPY . .
8+
RUN go mod download
99

1010
RUN CGO_ENABLED=0 GOOS=linux go build -o checkmate
1111

12-
# Final stage using distroless
1312
FROM gcr.io/distroless/static-debian12:nonroot
1413

1514
WORKDIR /app
1615

1716
COPY --from=builder /app/checkmate .
17+
COPY examples/config.yaml /app/config.yaml
1818

1919
USER nonroot:nonroot
2020

2121
# Expose Prometheus/healthcheck port
2222
EXPOSE 9100
2323

24-
ENTRYPOINT ["/app/checkmate"]
24+
ENTRYPOINT ["/app/checkmate", "/app/config.yaml"]

0 commit comments

Comments
 (0)