diff --git a/.github/release.Dockerfile b/.github/release.Dockerfile index 002759c..4dedf52 100644 --- a/.github/release.Dockerfile +++ b/.github/release.Dockerfile @@ -7,7 +7,7 @@ LABEL org.opencontainers.image.licenses=MIT RUN apk --no-cache add ca-certificates \ && rm -rf /var/cache/apk/* -VOLUME /etc/vault.d/ +VOLUME /etc/vault.d/ /tmp/certs ARG DIST_DIR ARG TARGETOS diff --git a/init/entrypoint b/init/entrypoint index 0eb7cdf..482f27d 100644 --- a/init/entrypoint +++ b/init/entrypoint @@ -1,9 +1,9 @@ #! /bin/sh set -eu -if [ -d /etc/vault.d/certs ]; then +if [ -d /tmp/certs ]; then echo "Updating certificates" - cp /etc/vault.d/certs/* /usr/local/share/ca-certificates + cp /tmp/certs/* /usr/local/share/ca-certificates update-ca-certificates fi