File Dockerfile of Package container-vaultwarden
#!BuildTag: vaultwarden
FROM opensuse/tumbleweed:latest
RUN zypper ar https://download.opensuse.org/repositories/home:eroca/openSUSE_Tumbleweed/ "home:eroca"
RUN zypper mr -p 97 "home:eroca"
RUN zypper --gpg-auto-import-keys refresh
RUN zypper -n install vaultwarden vaultwarden-web-vault
ENV ROCKET_PROFILE=release ROCKET_ADDRESS=0.0.0.0 ROCKET_PORT=80
ENV WEB_VAULT_ENABLED=true
ENV WEB_VAULT_FOLDER=/usr/share/vaultwarden/web-vault
ENV LOG_FILE=/var/log/vaultwarden/vaultwarden.log
ENV DATA_FOLDER=/var/lib/vaultwarden
VOLUME [ "/var/lib/vaultwarden" ]
EXPOSE 80
WORKDIR /
COPY healthcheck.sh /healthcheck.sh
RUN chmod +x /healthcheck.sh
HEALTHCHECK --interval=60s --timeout=10s CMD ["/healthcheck.sh"]
CMD /usr/bin/vaultwarden "${@}"