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 committed Apr 26, 2024
1 parent 42375d5 commit a0e1939
Show file tree
Hide file tree
Showing 2 changed files with 5 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 && \
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
3 changes: 3 additions & 0 deletions docker-images/pandoc/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,9 @@ FROM ${DOCKER_REPOSITORY}/scyllaridae:${TAG} AS scyllaridae

FROM pandoc/minimal:3.1.1
WORKDIR /app
RUN apk update && \
apk add curl bash ca-certificates && \
update-ca-certificates
COPY --from=scyllaridae /app/scyllaridae .
COPY scyllaridae.yml .
ENTRYPOINT ["/app/scyllaridae"]

0 comments on commit a0e1939

Please sign in to comment.