vaultwarden/Dockerfile
Renovator Bot 128c10355f
All checks were successful
continuous-integration/drone/push Build is passing
continuous-integration/drone/tag Build is passing
chore(deps): update vaultwarden packages (#43)
This PR contains the following updates:

| Package | Update | Change |
|---|---|---|
| [dani-garcia/bw_web_builds](https://github.com/dani-garcia/bw_web_builds) | minor | `v2.19.0d` -> `v2.20.4b` |
| [dani-garcia/vaultwarden](https://github.com/dani-garcia/vaultwarden) | minor | `1.21.0` -> `1.22.1` |

---

### Release Notes

<details>
<summary>dani-garcia/bw_web_builds</summary>

### [`v2.20.4b`](https://github.com/dani-garcia/bw_web_builds/releases/v2.20.4b)

[Compare Source](https://github.com/dani-garcia/bw_web_builds/compare/v2.20.4...v2.20.4b)

Based on v2.20.4, removed the terms of service agreements at signup that aren't applicable to self hosted instances

### [`v2.20.4`](https://github.com/dani-garcia/bw_web_builds/releases/v2.20.4)

[Compare Source](https://github.com/dani-garcia/bw_web_builds/compare/v2.20.3...v2.20.4)

https://github.com/bitwarden/web/releases/tag/v2.20.4

### [`v2.20.3`](https://github.com/dani-garcia/bw_web_builds/releases/v2.20.3)

[Compare Source](https://github.com/dani-garcia/bw_web_builds/compare/v2.20.1...v2.20.3)

https://github.com/bitwarden/web/releases/tag/v2.20.3

### [`v2.20.1`](https://github.com/dani-garcia/bw_web_builds/releases/v2.20.1)

[Compare Source](https://github.com/dani-garcia/bw_web_builds/compare/v2.19.0d...v2.20.1)

https://github.com/bitwarden/web/releases/tag/v2.20.1

</details>

<details>
<summary>dani-garcia/vaultwarden</summary>

### [`v1.22.1`](https://github.com/dani-garcia/vaultwarden/releases/1.22.1)

[Compare Source](https://github.com/dani-garcia/vaultwarden/compare/1.22.0...1.22.1)

⚠️ **Reminder**: If you are still using the `bitwardenrs/server*` Docker images, you need to migrate to the new `vaultwarden` image. Check https://github.com/dani-garcia/vaultwarden/discussions/1642 for an explanation. The old images are deprecated and will stop being updated after 1.23.0.

-   Fix alpine builds

### [`v1.22.0`](https://github.com/dani-garcia/vaultwarden/releases/1.22.0)

[Compare Source](https://github.com/dani-garcia/vaultwarden/compare/1.21.0...1.22.0)

⚠️ **Reminder**: If you are still using the `bitwardenrs/server*` Docker images, you need to migrate to the new `vaultwarden` image. Check https://github.com/dani-garcia/vaultwarden/discussions/1642 for an explanation. The old images are deprecated and will stop being updated after 1.23.0.

-   Added `sends_allowed` option to disable Send functionality.
-   Added support for hiding the senders email address.
-   Added Send options policy.
-   Added support for password reprompt.
-   Switched to the new attachment download API.
-   Send download links use a token system to limit their downloads.
-   Updates to the icon fetching.
-   Support for webauthn.
-   The admin page now shows which variables are overridden.
-   Updated dependencies and docker base images.
-   Now RSA keys are generated with the included openssl instead of calling to the openssl binary.
-   The web vault doesn't require accepting the terms are conditions now, which weren't applicable for a self hosted server.

</details>

---

### Configuration

📅 **Schedule**: At any time (no schedule defined).

🚦 **Automerge**: Disabled by config. Please merge this manually once you are satisfied.

♻ **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.

👻 **Immortal**: This PR will be recreated if closed unmerged. Get [config help](https://github.com/renovatebot/renovate/discussions) if that's undesired.

---

 - [ ] <!-- rebase-check -->If you want to rebase/retry this PR, check this box.

---

This PR has been generated by [Renovate Bot](https://github.com/renovatebot/renovate).

Reviewed-on: docker/vaultwarden#43
Co-authored-by: Renovator Bot <renovator@rknet.org>
Co-committed-by: Renovator Bot <renovator@rknet.org>
2021-07-06 10:30:05 +02:00

44 lines
1.5 KiB
Docker

FROM thegeeklab/alpine:latest@sha256:b7783fa9915d884ec5d8836826b10e0984126430a127dfb9aedc3b4b105f33c6
LABEL maintainer="Robert Kaussow <mail@thegeeklab.de>"
LABEL org.opencontainers.image.authors="Robert Kaussow <mail@thegeeklab.de>"
LABEL org.opencontainers.image.title="vaultwarden"
LABEL org.opencontainers.image.url="https://gitea.rknet.org/docker/vaultwarden"
LABEL org.opencontainers.image.source="https://gitea.rknet.org/docker/vaultwarden"
LABEL org.opencontainers.image.documentation="https://gitea.rknet.org/docker/vaultwarden"
ARG WEBVAULT_VERSION
# renovate: datasource=github-releases depName=dani-garcia/bw_web_builds versioning=loose
ENV WEBVAULT_VERSION="${WEBVAULT_VERSION:-v2.20.4b}"
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 '${WEBVAULT_VERSION##v}' ..." && \
curl -SsL "https://github.com/dani-garcia/bw_web_builds/releases/download/${WEBVAULT_VERSION}/bw_web_${WEBVAULT_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/vaultwarden /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 []