From 5969e9efc9e8b2a41d47efe81271a326322b171e Mon Sep 17 00:00:00 2001 From: Robert Kaussow Date: Fri, 1 Dec 2023 21:41:52 +0100 Subject: [PATCH] fix: switch back to alpine to avoid networking issues --- Containerfile | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/Containerfile b/Containerfile index 09c1e36..ce9c10e 100644 --- a/Containerfile +++ b/Containerfile @@ -44,11 +44,11 @@ RUN ldd target/$(cat rust_target)/release/vaultwarden && \ target/$(cat rust_target)/release/vaultwarden --help && \ target/$(cat rust_target)/release/vaultwarden --version -FROM scratch +FROM docker.io/alpine:3.18@sha256:34871e7290500828b39e22294660bee86d966bc0017544e848dd9a255cdf59e0 LABEL maintainer="Robert Kaussow " LABEL org.opencontainers.image.authors="Robert Kaussow " -LABEL org.opencontainers.image.title="vaultwarden" +LABEL org.opencontainers.image.title="Vaultwarden" LABEL org.opencontainers.image.url="https://gitea.rknet.org/container/vaultwarden" LABEL org.opencontainers.image.source="https://gitea.rknet.org/container/vaultwarden" LABEL org.opencontainers.image.documentation="https://gitea.rknet.org/container/vaultwarden" @@ -61,11 +61,13 @@ ENV WEBSOCKET_PORT=3012 COPY --from=build --chown=65532:65532 /data /data COPY --from=build /release/web-vault /web-vault -COPY --from=build /src/target/**/release/vaultwarden / +COPY --from=build /src/target/**/release/vaultwarden /bin/vaultwarden EXPOSE 8000 EXPOSE 3012 STOPSIGNAL SIGTERM -CMD ["/vaultwarden"] +USER 65532 + +CMD ["/bin/vaultwarden"] -- 2.45.2