Skip to content

Commit

Permalink
Add CA certificates to Dockerfile
Browse files Browse the repository at this point in the history
  • Loading branch information
HyunSu1768 committed Aug 28, 2024
1 parent ecb0fbd commit cb6aca8
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
FROM golang:alpine AS builder
RUN apk add -U --no-cache ca-certificates && update-ca-certificates

ENV GO111MODULE=on\
CGO_ENABLED=0\
Expand All @@ -16,6 +17,7 @@ RUN go build -o main .
WORKDIR /dist
RUN cp /build/main .
FROM scratch
COPY --from=builder /etc/ssl/certs/ca-certificates.crt /etc/ssl/certs/
COPY --from=builder /dist/main .

COPY --from=builder /usr/local/go/lib/time/zoneinfo.zip /
Expand Down

0 comments on commit cb6aca8

Please sign in to comment.