From 02f87af3739daacb0316697c2a67546bda4debdf Mon Sep 17 00:00:00 2001 From: Bakhtiyor Ruziev Date: Sun, 4 Feb 2024 15:56:53 +0600 Subject: [PATCH] add tzdata and certs --- .theruziev/build/Dockerfile | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/.theruziev/build/Dockerfile b/.theruziev/build/Dockerfile index c2fdfb3..1ac9efb 100644 --- a/.theruziev/build/Dockerfile +++ b/.theruziev/build/Dockerfile @@ -4,6 +4,9 @@ ARG PACKAGE_PREFIX="" ARG GIT_TAG="dev" ARG GIT_COMMIT="" +RUN apk update && apk upgrade && apk add --no-cache ca-certificates tzdata +RUN update-ca-certificates + WORKDIR /app @@ -22,6 +25,8 @@ RUN go build -o app -ldflags="\ FROM scratch COPY --from=builder /app/app . +COPY --from=builder /etc/ssl /etc/ssl/ +COPY --from=builder /usr/share/zoneinfo /usr/share/zoneinfo # import curl from current repository image COPY --from=ghcr.io/tarampampam/curl:8.0.1 /bin/curl /bin/curl