Skip to content

Commit

Permalink
Update Dockerfile
Browse files Browse the repository at this point in the history
  • Loading branch information
joecorall authored Apr 26, 2024
1 parent 02aafb3 commit 839622a
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,8 @@ FROM golang:1.21-alpine
WORKDIR /app

RUN apk update && \
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
apk add bash ca-certificates && \
update-ca-certificates

COPY . ./
RUN go mod download && \
Expand Down

0 comments on commit 839622a

Please sign in to comment.