Robert Kaussow
42585e941f
All checks were successful
continuous-integration/drone/push Build is passing
39 lines
1.1 KiB
Docker
39 lines
1.1 KiB
Docker
FROM xoxys/alpine
|
|
|
|
LABEL maintainer="Robert Kaussow <mail@geeklabor.de>" \
|
|
org.label-schema.name="bitwardenrs" \
|
|
org.label-schema.vcs-url="https://gitea.rknet.org/docker/bitwardenrs" \
|
|
org.label-schema.vendor="Robert Kaussow" \
|
|
org.label-schema.schema-version="1.0"
|
|
|
|
ARG VAULT_VERSION=2.12.0c
|
|
|
|
ADD overlay/ /
|
|
|
|
RUN apk --update add --virtual .build-deps tar curl && \
|
|
apk --update add openssl postgresql-libs ca-certificates && \
|
|
mkdir -p /app/web-vault /app/data && \
|
|
curl -SsL "https://github.com/dani-garcia/bw_web_builds/releases/download/v${VAULT_VERSION}/bw_web_v${VAULT_VERSION}.tar.gz" | \
|
|
tar xz -C /app/web-vault && \
|
|
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 []
|