vaultwarden/Dockerfile
Renovator Bot d4d690d48a
All checks were successful
continuous-integration/drone/push Build is passing
continuous-integration/drone/tag Build is passing
chore(deps): update bitwarden packages (#31)
chore(deps): update bitwarden packages

Reviewed-on: docker/bitwardenrs#31
Co-Authored-By: Renovator Bot <renovator@rknet.org>
Co-Committed-By: Renovator Bot <renovator@rknet.org>
2021-03-29 09:05:11 +02:00

43 lines
1.5 KiB
Docker

FROM thegeeklab/alpine:latest@sha256:1bdc9a2deafb98491215b54701bcd5e2dc59c171b445425afeba232f5aae2b84
LABEL maintainer="Robert Kaussow <mail@thegeeklab.de>"
LABEL org.opencontainers.image.authors="Robert Kaussow <mail@thegeeklab.de>"
LABEL org.opencontainers.image.title="bitwardenrs"
LABEL org.opencontainers.image.url="https://gitea.rknet.org/docker/bitwardenrs"
LABEL org.opencontainers.image.source="https://gitea.rknet.org/docker/bitwardenrs"
LABEL org.opencontainers.image.documentation="https://gitea.rknet.org/docker/bitwardenrs"
ARG VAULT_VERSION
# renovate: datasource=github-releases depName=dani-garcia/bw_web_builds
ENV VAULT_VERSION="${VAULT_VERSION:-v2.19.0}"
ADD overlay/ /
RUN apk --update add --virtual .build-deps tar curl && \
apk --update add openssl postgresql-libs sqlite ca-certificates && \
mkdir -p /app/web-vault /app/data && \
echo "Using Web Vault version '${VAULT_VERSION##v}' ..." && \
curl -SsL "https://github.com/dani-garcia/bw_web_builds/releases/download/${VAULT_VERSION}/bw_web_${VAULT_VERSION}.tar.gz" | \
tar xz -C /app && \
apk del .build-deps && \
rm -rf /var/cache/apk/* && \
rm -rf /tmp/* && \
chown -R app:app /app
ADD src/Rocket.toml /app
ADD src/target/x86_64-unknown-linux-musl/release/bitwarden_rs /app
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 []