From 9209e711e03c9dd09a88688a7ee5c0846c028d2d Mon Sep 17 00:00:00 2001 From: Joe Corall Date: Sat, 18 May 2024 20:38:07 -0400 Subject: [PATCH] Trust letsencrypt CA --- Dockerfile | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/Dockerfile b/Dockerfile index 782637d..cd6ef63 100644 --- a/Dockerfile +++ b/Dockerfile @@ -2,11 +2,15 @@ FROM golang:1.22-alpine WORKDIR /app +SHELL ["/bin/ash", "-o", "pipefail", "-c"] + RUN apk update && \ apk add --no-cache \ curl==8.5.0-r0 \ bash==5.2.21-r0 \ - ca-certificates==20240226-r0 && \ + ca-certificates==20240226-r0 \ + openssl==3.1.4-r6 && \ + openssl s_client -connect helloworld.letsencrypt.org:443 -showcerts /dev/null | sed -e '/-----BEGIN/,/-----END/!d' | tee "/usr/local/share/ca-certificates/letsencrypt.crt" >/dev/null && \ update-ca-certificates COPY . ./