Skip to content

Commit

Permalink
Add ca-certs
Browse files Browse the repository at this point in the history
  • Loading branch information
heussd committed Jan 9, 2025
1 parent 2eb2d2a commit 52447da
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions keyword-matcher-go/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,13 @@ COPY cmd ./cmd
RUN CGO_ENABLED=0 go build -a -ldflags '-s' -o goapp.bin ./cmd


# https://github.com/drone/ca-certs/blob/master/Dockerfile
FROM alpine:3.6 as alpine
RUN apk add -U --no-cache ca-certificates


FROM scratch
COPY --from=alpine /etc/ssl/certs/ca-certificates.crt /etc/ssl/certs/
COPY --from=builder /app/goapp.bin /goapp.bin

CMD [ "./goapp.bin" ]

0 comments on commit 52447da

Please sign in to comment.