From c020144e1c9ef805b3c37bfec5b03b17cb9bee2a Mon Sep 17 00:00:00 2001 From: Sushmith <6890568+bsushmith@users.noreply.github.com> Date: Wed, 23 Mar 2022 12:04:10 +0530 Subject: [PATCH] feat: add curl and openssl to image (#147) * feat: add curl and openssl to image * feat: run openssl command * feat: update certificates in image * fix: fix typo --- Dockerfile | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/Dockerfile b/Dockerfile index 047067600..1357f1361 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,9 +1,15 @@ FROM alpine:3.13 +RUN apk add curl +RUN apk add openssl + RUN apk add --no-cache ca-certificates && update-ca-certificates RUN curl --output /usr/local/share/ca-certificates/SectigoRSADomainValidationSecureServerCA.crt http://crt.sectigo.com/SectigoRSADomainValidationSecureServerCA.crt +RUN openssl x509 -inform DER -in /usr/local/share/ca-certificates/SectigoRSADomainValidationSecureServerCA.crt -out /usr/local/share/ca-certificates/SectigoRSADomainValidationSecureServerCA.pem -text +RUN update-ca-certificates + COPY guardian . EXPOSE 8080