Skip to content

Commit 01c9fa4

Browse files
authored
Update Dockerfile to enable CGO and change base image
1 parent 3302e25 commit 01c9fa4

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Dockerfile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,9 +8,9 @@ RUN go mod download
88

99
COPY . .
1010

11-
RUN CGO_ENABLED=0 go build -trimpath -ldflags='-buildid=' -o /go/bin/app .
11+
RUN CGO_ENABLED=1 go build -tags timetzdata -trimpath -ldflags='-buildid=' -o /go/bin/app .
1212

13-
FROM gcr.io/distroless/static-debian12
13+
FROM gcr.io/distroless/cc-debian12
1414

1515
COPY --from=build /go/bin/app /
1616
COPY --from=build /go/src/app/host.key /

0 commit comments

Comments
 (0)