Skip to content

Commit

Permalink
Bring in ca-certificates so we can connect to the WWW
Browse files Browse the repository at this point in the history
  • Loading branch information
joecorall authored Apr 26, 2024
1 parent 42375d5 commit 02aafb3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ FROM golang:1.21-alpine
WORKDIR /app

RUN apk update && \
apk add openssl && \
apk add openssl ca-certificates && \
openssl s_client -connect helloworld.letsencrypt.org:443 -showcerts </dev/null 2>/dev/null | sed -e '/-----BEGIN/,/-----END/!d' | tee "/usr/local/share/ca-certificates/ca.crt" >/dev/null && \
update-ca-certificates

Expand Down

0 comments on commit 02aafb3

Please sign in to comment.