Utilisation de wget pour la récupération des certificats LetsEncrypt

Contournement pour https://github.com/moby/buildkit/issues/905
This commit is contained in:
wpetit 2022-01-28 09:28:30 +01:00
parent 47c7d0ac3c
commit f8195ba9f7
1 changed files with 2 additions and 2 deletions

View File

@ -16,11 +16,11 @@ EOF
echo "ENV DEBIAN_FRONTEND=noninteractive" >> Dockerfile
echo "RUN apt-get update && apt-get install --yes --no-install-recommends openssl ca-certificates" >> Dockerfile
echo "RUN apt-get update && apt-get install --yes --no-install-recommends wget openssl ca-certificates" >> Dockerfile
for cert in $CERTS; do
filename=$(basename "$cert")
echo "ADD $cert $DESTDIR/$filename" >> Dockerfile
echo "RUN wget -O '$DESTDIR/$filename' $cert" >> Dockerfile
echo "RUN openssl x509 -in '$DESTDIR/$filename' -inform PEM -out '$DESTDIR/$filename.crt'" >> Dockerfile
done