Skip to content

Commit

Permalink
Vaultwarden seems to use the relative path data/ as its data direct…
Browse files Browse the repository at this point in the history
…ory instead of `/data/`, so we need our workdir to be `/`
  • Loading branch information
NiklasRosenstein committed Oct 11, 2024
1 parent 5c56329 commit 59cc12e
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions vaultwarden-fly-io/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -18,10 +18,9 @@ COPY --from=litestream /litestream /usr/bin/litestream
COPY --from=geesefs /geesefs /usr/bin/geesefs
COPY --from=minio/mc:RELEASE.2024-10-02T08-27-28Z /usr/bin/mc /usr/bin/mc
RUN echo 'vaultwarden ALL=(ALL) NOPASSWD:SETENV: /usr/bin/geesefs' >> /etc/sudoers
WORKDIR /etc/vaultwarden
COPY entrypoint.sh .
RUN addgroup -S vaultwarden && adduser -S vaultwarden -G vaultwarden
RUN touch /etc/litestream.yml && \
chown -R vaultwarden:vaultwarden /data /etc/vaultwarden /etc/litestream.yml
chown -R vaultwarden:vaultwarden /data /etc/litestream.yml
USER vaultwarden
ENTRYPOINT [ "/bin/sh", "/etc/vaultwarden/entrypoint.sh" ]
ENTRYPOINT [ "/bin/sh", "/entrypoint.sh" ]

0 comments on commit 59cc12e

Please sign in to comment.