1
0
Fork 0
mirror of https://github.com/dani-garcia/vaultwarden.git synced 2025-05-25 13:03:57 +00:00

Fix #603 and remove mysql from sqlite image

This changes the healthcheck to use `sh` instead of bash, that is absent
from some image versions. (like alpine)

It also removes `*mariadb*` packages from runtime image of sqlite images
as these shouldn't be required.
This commit is contained in:
Miro Prasil 2019-09-06 09:34:21 +01:00
parent df8114f8be
commit eea3f13bb3
10 changed files with 20 additions and 15 deletions

View file

@ -62,7 +62,7 @@ ENV SSL_CERT_DIR=/etc/ssl/certs
# Install needed libraries
RUN apk add --no-cache \
openssl \
mariadb-connector-c \
curl \
ca-certificates
RUN mkdir /data
@ -78,7 +78,7 @@ COPY --from=build /app/target/x86_64-unknown-linux-musl/release/bitwarden_rs .
COPY docker/healthcheck.sh ./healthcheck.sh
HEALTHCHECK --interval=10s --timeout=1s CMD bash healthcheck.sh || exit 1
HEALTHCHECK --interval=10s --timeout=1s CMD sh healthcheck.sh || exit 1
# Configures the startup!