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:
parent
47c7d0ac3c
commit
f8195ba9f7
|
@ -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
|
||||
|
||||
|
|
Loading…
Reference in New Issue