Skip to content

Commit

Permalink
fix: ca cert
Browse files Browse the repository at this point in the history
  • Loading branch information
JacobLinCool committed Mar 3, 2024
1 parent 1afa2ac commit ead28ca
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ ARG TARGETARCH

WORKDIR /workdir

RUN apt-get update && apt-get install -y curl
RUN apt-get update && apt-get install -y curl ca-certificates

RUN if [ ${TARGETARCH} = "amd64" ]; then curl -LO https://github.com/cloudflare/workerd/releases/download/${WORKERD_VERSION}/workerd-linux-64.gz; fi
RUN if [ ${TARGETARCH} = "arm64" ]; then curl -LO https://github.com/cloudflare/workerd/releases/download/${WORKERD_VERSION}/workerd-linux-arm64.gz; fi
Expand All @@ -18,11 +18,14 @@ RUN mkdir lib && \

FROM busybox:glibc

COPY --from=builder /etc/ssl/certs/ca-certificates.crt /etc/ssl/certs/ca-certificates.crt
COPY --from=builder /workdir/workerd /workerd
COPY --from=builder /workdir/lib /lib

WORKDIR /worker

ENV SSL_CERT_FILE=/etc/ssl/certs/ca-certificates.crt

ENTRYPOINT [ "/workerd" ]

CMD [ "serve", "worker.capnp" ]

0 comments on commit ead28ca

Please sign in to comment.