2023-11-07 15:44:59 +00:00
|
|
|
FROM quay.io/thegeeklab/alpine:latest@sha256:e86840e5ad608b2951e0d1c9e131756c1685f5b1bea408438e7f7b80c7c119f4
|
2020-02-22 15:58:35 +00:00
|
|
|
|
2020-12-20 21:47:44 +00:00
|
|
|
LABEL maintainer="Robert Kaussow <mail@thegeeklab.de>"
|
|
|
|
LABEL org.opencontainers.image.authors="Robert Kaussow <mail@thegeeklab.de>"
|
2021-05-15 12:19:58 +00:00
|
|
|
LABEL org.opencontainers.image.title="vaultwarden"
|
2023-11-07 15:36:21 +00:00
|
|
|
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"
|
2021-05-15 12:19:58 +00:00
|
|
|
|
2021-05-15 13:25:24 +00:00
|
|
|
ARG WEBVAULT_VERSION
|
2020-02-22 15:58:35 +00:00
|
|
|
|
2021-06-18 20:15:42 +00:00
|
|
|
# renovate: datasource=github-releases depName=dani-garcia/bw_web_builds versioning=loose
|
2023-09-06 06:32:43 +00:00
|
|
|
ENV WEBVAULT_VERSION="${WEBVAULT_VERSION:-v2023.8.2}"
|
2020-02-22 15:58:35 +00:00
|
|
|
|
|
|
|
ADD overlay/ /
|
|
|
|
|
|
|
|
RUN apk --update add --virtual .build-deps tar curl && \
|
2020-10-17 21:17:18 +00:00
|
|
|
apk --update add openssl postgresql-libs sqlite ca-certificates && \
|
2020-02-22 15:58:35 +00:00
|
|
|
mkdir -p /app/web-vault /app/data && \
|
2021-05-15 12:19:58 +00:00
|
|
|
echo "Using Web Vault version '${WEBVAULT_VERSION##v}' ..." && \
|
2022-06-21 13:15:22 +00:00
|
|
|
curl -SsfL "https://github.com/dani-garcia/bw_web_builds/releases/download/${WEBVAULT_VERSION}/bw_web_${WEBVAULT_VERSION}.tar.gz" | \
|
2020-02-22 19:21:14 +00:00
|
|
|
tar xz -C /app && \
|
2020-02-22 15:58:35 +00:00
|
|
|
apk del .build-deps && \
|
|
|
|
rm -rf /var/cache/apk/* && \
|
|
|
|
rm -rf /tmp/* && \
|
|
|
|
chown -R app:app /app
|
|
|
|
|
2021-05-15 12:19:58 +00:00
|
|
|
ADD src/target/x86_64-unknown-linux-musl/release/vaultwarden /app
|
2020-02-22 15:58:35 +00:00
|
|
|
|
|
|
|
VOLUME /app/data
|
|
|
|
|
|
|
|
EXPOSE 8080
|
|
|
|
EXPOSE 3012
|
|
|
|
|
|
|
|
USER app
|
|
|
|
|
|
|
|
STOPSIGNAL SIGTERM
|
|
|
|
|
|
|
|
ENTRYPOINT ["/usr/local/bin/entrypoint"]
|
|
|
|
HEALTHCHECK --interval=10s --timeout=3s --retries=3 CMD /usr/local/bin/healthcheck
|
|
|
|
WORKDIR /app
|
|
|
|
CMD []
|