Skip to content

Commit

Permalink
Trust letsencrypt CA (#23)
Browse files Browse the repository at this point in the history
  • Loading branch information
joecorall committed May 19, 2024
1 parent 53cac41 commit 225859e
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,15 @@ FROM golang:1.22-alpine

WORKDIR /app

SHELL ["/bin/ash", "-o", "pipefail", "-c"]

RUN apk update && \
apk add --no-cache \
curl==8.5.0-r0 \
bash==5.2.21-r0 \
ca-certificates==20240226-r0 && \
ca-certificates==20240226-r0 \
openssl==3.1.4-r6 && \
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/letsencrypt.crt" >/dev/null && \
update-ca-certificates

COPY . ./
Expand Down

0 comments on commit 225859e

Please sign in to comment.