Skip to content

Commit 52447da

Browse files
committed
Add ca-certs
1 parent 2eb2d2a commit 52447da

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

keyword-matcher-go/Dockerfile

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,13 @@ COPY cmd ./cmd
1414
RUN CGO_ENABLED=0 go build -a -ldflags '-s' -o goapp.bin ./cmd
1515

1616

17+
# https://github.com/drone/ca-certs/blob/master/Dockerfile
18+
FROM alpine:3.6 as alpine
19+
RUN apk add -U --no-cache ca-certificates
20+
21+
1722
FROM scratch
23+
COPY --from=alpine /etc/ssl/certs/ca-certificates.crt /etc/ssl/certs/
1824
COPY --from=builder /app/goapp.bin /goapp.bin
1925

2026
CMD [ "./goapp.bin" ]

0 commit comments

Comments
 (0)