geforkt von mirrored/vaultwarden
Merge pull request #2507 from BlackDex/fix-persisten-volume-check
Fix persistent volume check
Dieser Commit ist enthalten in:
Commit
3713f2d134
17 geänderte Dateien mit 153 neuen und 102 gelöschten Zeilen
|
@ -181,6 +181,14 @@ RUN touch src/main.rs
|
||||||
# hadolint ignore=DL3059
|
# hadolint ignore=DL3059
|
||||||
RUN {{ mount_rust_cache -}} cargo build --features ${DB} --release{{ package_arch_target_param }}
|
RUN {{ mount_rust_cache -}} cargo build --features ${DB} --release{{ package_arch_target_param }}
|
||||||
|
|
||||||
|
# Create a special empty file which we check within the application.
|
||||||
|
# If this file exists, then we exit Vaultwarden to prevent data loss when someone forgets to use volumes.
|
||||||
|
# If you really really want to use volatile storage you can set the env `I_REALLY_WANT_VOLATILE_STORAGE=true`
|
||||||
|
# This file should disappear if a volume is mounted on-top of this using a docker volume.
|
||||||
|
# We run this in the build image and copy it over, because the runtime image could be missing some executables.
|
||||||
|
# hadolint ignore=DL3059
|
||||||
|
RUN touch /vaultwarden_docker_persistent_volume_check
|
||||||
|
|
||||||
######################## RUNTIME IMAGE ########################
|
######################## RUNTIME IMAGE ########################
|
||||||
# Create a new stage with a minimal image
|
# Create a new stage with a minimal image
|
||||||
# because we already have a binary built
|
# because we already have a binary built
|
||||||
|
@ -238,16 +246,11 @@ VOLUME /data
|
||||||
EXPOSE 80
|
EXPOSE 80
|
||||||
EXPOSE 3012
|
EXPOSE 3012
|
||||||
|
|
||||||
# Create a special empty file which we check within the application.
|
|
||||||
# If this file exists, then we exit Vaultwarden to prevent data loss when someone forgets to use volumes.
|
|
||||||
# If you really really want to use volatile storage you can set the env `I_REALLY_WANT_VOLATILE_STORAGE=true`
|
|
||||||
# This file should disappear if a volume is mounted on-top of this using a docker volume.
|
|
||||||
RUN touch /data/vaultwarden_docker_persistent_volume_check
|
|
||||||
|
|
||||||
# Copies the files from the context (Rocket.toml file and web-vault)
|
# Copies the files from the context (Rocket.toml file and web-vault)
|
||||||
# and the binary from the "build" stage to the current stage
|
# and the binary from the "build" stage to the current stage
|
||||||
WORKDIR /
|
WORKDIR /
|
||||||
COPY --from=vault /web-vault ./web-vault
|
COPY --from=vault /web-vault ./web-vault
|
||||||
|
COPY --from=build /vaultwarden_docker_persistent_volume_check /data/vaultwarden_docker_persistent_volume_check
|
||||||
{% if package_arch_target is defined %}
|
{% if package_arch_target is defined %}
|
||||||
COPY --from=build /app/target/{{ package_arch_target }}/release/vaultwarden .
|
COPY --from=build /app/target/{{ package_arch_target }}/release/vaultwarden .
|
||||||
{% else %}
|
{% else %}
|
||||||
|
|
|
@ -84,6 +84,14 @@ RUN touch src/main.rs
|
||||||
# hadolint ignore=DL3059
|
# hadolint ignore=DL3059
|
||||||
RUN cargo build --features ${DB} --release
|
RUN cargo build --features ${DB} --release
|
||||||
|
|
||||||
|
# Create a special empty file which we check within the application.
|
||||||
|
# If this file exists, then we exit Vaultwarden to prevent data loss when someone forgets to use volumes.
|
||||||
|
# If you really really want to use volatile storage you can set the env `I_REALLY_WANT_VOLATILE_STORAGE=true`
|
||||||
|
# This file should disappear if a volume is mounted on-top of this using a docker volume.
|
||||||
|
# We run this in the build image and copy it over, because the runtime image could be missing some executables.
|
||||||
|
# hadolint ignore=DL3059
|
||||||
|
RUN touch /vaultwarden_docker_persistent_volume_check
|
||||||
|
|
||||||
######################## RUNTIME IMAGE ########################
|
######################## RUNTIME IMAGE ########################
|
||||||
# Create a new stage with a minimal image
|
# Create a new stage with a minimal image
|
||||||
# because we already have a binary built
|
# because we already have a binary built
|
||||||
|
@ -112,16 +120,11 @@ VOLUME /data
|
||||||
EXPOSE 80
|
EXPOSE 80
|
||||||
EXPOSE 3012
|
EXPOSE 3012
|
||||||
|
|
||||||
# Create a special empty file which we check within the application.
|
|
||||||
# If this file exists, then we exit Vaultwarden to prevent data loss when someone forgets to use volumes.
|
|
||||||
# If you really really want to use volatile storage you can set the env `I_REALLY_WANT_VOLATILE_STORAGE=true`
|
|
||||||
# This file should disappear if a volume is mounted on-top of this using a docker volume.
|
|
||||||
RUN touch /data/vaultwarden_docker_persistent_volume_check
|
|
||||||
|
|
||||||
# Copies the files from the context (Rocket.toml file and web-vault)
|
# Copies the files from the context (Rocket.toml file and web-vault)
|
||||||
# and the binary from the "build" stage to the current stage
|
# and the binary from the "build" stage to the current stage
|
||||||
WORKDIR /
|
WORKDIR /
|
||||||
COPY --from=vault /web-vault ./web-vault
|
COPY --from=vault /web-vault ./web-vault
|
||||||
|
COPY --from=build /vaultwarden_docker_persistent_volume_check /data/vaultwarden_docker_persistent_volume_check
|
||||||
COPY --from=build /app/target/release/vaultwarden .
|
COPY --from=build /app/target/release/vaultwarden .
|
||||||
|
|
||||||
COPY docker/healthcheck.sh /healthcheck.sh
|
COPY docker/healthcheck.sh /healthcheck.sh
|
||||||
|
|
|
@ -78,6 +78,14 @@ RUN touch src/main.rs
|
||||||
# hadolint ignore=DL3059
|
# hadolint ignore=DL3059
|
||||||
RUN cargo build --features ${DB} --release --target=x86_64-unknown-linux-musl
|
RUN cargo build --features ${DB} --release --target=x86_64-unknown-linux-musl
|
||||||
|
|
||||||
|
# Create a special empty file which we check within the application.
|
||||||
|
# If this file exists, then we exit Vaultwarden to prevent data loss when someone forgets to use volumes.
|
||||||
|
# If you really really want to use volatile storage you can set the env `I_REALLY_WANT_VOLATILE_STORAGE=true`
|
||||||
|
# This file should disappear if a volume is mounted on-top of this using a docker volume.
|
||||||
|
# We run this in the build image and copy it over, because the runtime image could be missing some executables.
|
||||||
|
# hadolint ignore=DL3059
|
||||||
|
RUN touch /vaultwarden_docker_persistent_volume_check
|
||||||
|
|
||||||
######################## RUNTIME IMAGE ########################
|
######################## RUNTIME IMAGE ########################
|
||||||
# Create a new stage with a minimal image
|
# Create a new stage with a minimal image
|
||||||
# because we already have a binary built
|
# because we already have a binary built
|
||||||
|
@ -104,16 +112,11 @@ VOLUME /data
|
||||||
EXPOSE 80
|
EXPOSE 80
|
||||||
EXPOSE 3012
|
EXPOSE 3012
|
||||||
|
|
||||||
# Create a special empty file which we check within the application.
|
|
||||||
# If this file exists, then we exit Vaultwarden to prevent data loss when someone forgets to use volumes.
|
|
||||||
# If you really really want to use volatile storage you can set the env `I_REALLY_WANT_VOLATILE_STORAGE=true`
|
|
||||||
# This file should disappear if a volume is mounted on-top of this using a docker volume.
|
|
||||||
RUN touch /data/vaultwarden_docker_persistent_volume_check
|
|
||||||
|
|
||||||
# Copies the files from the context (Rocket.toml file and web-vault)
|
# Copies the files from the context (Rocket.toml file and web-vault)
|
||||||
# and the binary from the "build" stage to the current stage
|
# and the binary from the "build" stage to the current stage
|
||||||
WORKDIR /
|
WORKDIR /
|
||||||
COPY --from=vault /web-vault ./web-vault
|
COPY --from=vault /web-vault ./web-vault
|
||||||
|
COPY --from=build /vaultwarden_docker_persistent_volume_check /data/vaultwarden_docker_persistent_volume_check
|
||||||
COPY --from=build /app/target/x86_64-unknown-linux-musl/release/vaultwarden .
|
COPY --from=build /app/target/x86_64-unknown-linux-musl/release/vaultwarden .
|
||||||
|
|
||||||
COPY docker/healthcheck.sh /healthcheck.sh
|
COPY docker/healthcheck.sh /healthcheck.sh
|
||||||
|
|
|
@ -84,6 +84,14 @@ RUN touch src/main.rs
|
||||||
# hadolint ignore=DL3059
|
# hadolint ignore=DL3059
|
||||||
RUN --mount=type=cache,target=/root/.cargo/git --mount=type=cache,target=/root/.cargo/registry cargo build --features ${DB} --release
|
RUN --mount=type=cache,target=/root/.cargo/git --mount=type=cache,target=/root/.cargo/registry cargo build --features ${DB} --release
|
||||||
|
|
||||||
|
# Create a special empty file which we check within the application.
|
||||||
|
# If this file exists, then we exit Vaultwarden to prevent data loss when someone forgets to use volumes.
|
||||||
|
# If you really really want to use volatile storage you can set the env `I_REALLY_WANT_VOLATILE_STORAGE=true`
|
||||||
|
# This file should disappear if a volume is mounted on-top of this using a docker volume.
|
||||||
|
# We run this in the build image and copy it over, because the runtime image could be missing some executables.
|
||||||
|
# hadolint ignore=DL3059
|
||||||
|
RUN touch /vaultwarden_docker_persistent_volume_check
|
||||||
|
|
||||||
######################## RUNTIME IMAGE ########################
|
######################## RUNTIME IMAGE ########################
|
||||||
# Create a new stage with a minimal image
|
# Create a new stage with a minimal image
|
||||||
# because we already have a binary built
|
# because we already have a binary built
|
||||||
|
@ -112,16 +120,11 @@ VOLUME /data
|
||||||
EXPOSE 80
|
EXPOSE 80
|
||||||
EXPOSE 3012
|
EXPOSE 3012
|
||||||
|
|
||||||
# Create a special empty file which we check within the application.
|
|
||||||
# If this file exists, then we exit Vaultwarden to prevent data loss when someone forgets to use volumes.
|
|
||||||
# If you really really want to use volatile storage you can set the env `I_REALLY_WANT_VOLATILE_STORAGE=true`
|
|
||||||
# This file should disappear if a volume is mounted on-top of this using a docker volume.
|
|
||||||
RUN touch /data/vaultwarden_docker_persistent_volume_check
|
|
||||||
|
|
||||||
# Copies the files from the context (Rocket.toml file and web-vault)
|
# Copies the files from the context (Rocket.toml file and web-vault)
|
||||||
# and the binary from the "build" stage to the current stage
|
# and the binary from the "build" stage to the current stage
|
||||||
WORKDIR /
|
WORKDIR /
|
||||||
COPY --from=vault /web-vault ./web-vault
|
COPY --from=vault /web-vault ./web-vault
|
||||||
|
COPY --from=build /vaultwarden_docker_persistent_volume_check /data/vaultwarden_docker_persistent_volume_check
|
||||||
COPY --from=build /app/target/release/vaultwarden .
|
COPY --from=build /app/target/release/vaultwarden .
|
||||||
|
|
||||||
COPY docker/healthcheck.sh /healthcheck.sh
|
COPY docker/healthcheck.sh /healthcheck.sh
|
||||||
|
|
|
@ -78,6 +78,14 @@ RUN touch src/main.rs
|
||||||
# hadolint ignore=DL3059
|
# hadolint ignore=DL3059
|
||||||
RUN --mount=type=cache,target=/root/.cargo/git --mount=type=cache,target=/root/.cargo/registry cargo build --features ${DB} --release --target=x86_64-unknown-linux-musl
|
RUN --mount=type=cache,target=/root/.cargo/git --mount=type=cache,target=/root/.cargo/registry cargo build --features ${DB} --release --target=x86_64-unknown-linux-musl
|
||||||
|
|
||||||
|
# Create a special empty file which we check within the application.
|
||||||
|
# If this file exists, then we exit Vaultwarden to prevent data loss when someone forgets to use volumes.
|
||||||
|
# If you really really want to use volatile storage you can set the env `I_REALLY_WANT_VOLATILE_STORAGE=true`
|
||||||
|
# This file should disappear if a volume is mounted on-top of this using a docker volume.
|
||||||
|
# We run this in the build image and copy it over, because the runtime image could be missing some executables.
|
||||||
|
# hadolint ignore=DL3059
|
||||||
|
RUN touch /vaultwarden_docker_persistent_volume_check
|
||||||
|
|
||||||
######################## RUNTIME IMAGE ########################
|
######################## RUNTIME IMAGE ########################
|
||||||
# Create a new stage with a minimal image
|
# Create a new stage with a minimal image
|
||||||
# because we already have a binary built
|
# because we already have a binary built
|
||||||
|
@ -104,16 +112,11 @@ VOLUME /data
|
||||||
EXPOSE 80
|
EXPOSE 80
|
||||||
EXPOSE 3012
|
EXPOSE 3012
|
||||||
|
|
||||||
# Create a special empty file which we check within the application.
|
|
||||||
# If this file exists, then we exit Vaultwarden to prevent data loss when someone forgets to use volumes.
|
|
||||||
# If you really really want to use volatile storage you can set the env `I_REALLY_WANT_VOLATILE_STORAGE=true`
|
|
||||||
# This file should disappear if a volume is mounted on-top of this using a docker volume.
|
|
||||||
RUN touch /data/vaultwarden_docker_persistent_volume_check
|
|
||||||
|
|
||||||
# Copies the files from the context (Rocket.toml file and web-vault)
|
# Copies the files from the context (Rocket.toml file and web-vault)
|
||||||
# and the binary from the "build" stage to the current stage
|
# and the binary from the "build" stage to the current stage
|
||||||
WORKDIR /
|
WORKDIR /
|
||||||
COPY --from=vault /web-vault ./web-vault
|
COPY --from=vault /web-vault ./web-vault
|
||||||
|
COPY --from=build /vaultwarden_docker_persistent_volume_check /data/vaultwarden_docker_persistent_volume_check
|
||||||
COPY --from=build /app/target/x86_64-unknown-linux-musl/release/vaultwarden .
|
COPY --from=build /app/target/x86_64-unknown-linux-musl/release/vaultwarden .
|
||||||
|
|
||||||
COPY docker/healthcheck.sh /healthcheck.sh
|
COPY docker/healthcheck.sh /healthcheck.sh
|
||||||
|
|
|
@ -104,6 +104,14 @@ RUN touch src/main.rs
|
||||||
# hadolint ignore=DL3059
|
# hadolint ignore=DL3059
|
||||||
RUN cargo build --features ${DB} --release --target=aarch64-unknown-linux-gnu
|
RUN cargo build --features ${DB} --release --target=aarch64-unknown-linux-gnu
|
||||||
|
|
||||||
|
# Create a special empty file which we check within the application.
|
||||||
|
# If this file exists, then we exit Vaultwarden to prevent data loss when someone forgets to use volumes.
|
||||||
|
# If you really really want to use volatile storage you can set the env `I_REALLY_WANT_VOLATILE_STORAGE=true`
|
||||||
|
# This file should disappear if a volume is mounted on-top of this using a docker volume.
|
||||||
|
# We run this in the build image and copy it over, because the runtime image could be missing some executables.
|
||||||
|
# hadolint ignore=DL3059
|
||||||
|
RUN touch /vaultwarden_docker_persistent_volume_check
|
||||||
|
|
||||||
######################## RUNTIME IMAGE ########################
|
######################## RUNTIME IMAGE ########################
|
||||||
# Create a new stage with a minimal image
|
# Create a new stage with a minimal image
|
||||||
# because we already have a binary built
|
# because we already have a binary built
|
||||||
|
@ -136,16 +144,11 @@ VOLUME /data
|
||||||
EXPOSE 80
|
EXPOSE 80
|
||||||
EXPOSE 3012
|
EXPOSE 3012
|
||||||
|
|
||||||
# Create a special empty file which we check within the application.
|
|
||||||
# If this file exists, then we exit Vaultwarden to prevent data loss when someone forgets to use volumes.
|
|
||||||
# If you really really want to use volatile storage you can set the env `I_REALLY_WANT_VOLATILE_STORAGE=true`
|
|
||||||
# This file should disappear if a volume is mounted on-top of this using a docker volume.
|
|
||||||
RUN touch /data/vaultwarden_docker_persistent_volume_check
|
|
||||||
|
|
||||||
# Copies the files from the context (Rocket.toml file and web-vault)
|
# Copies the files from the context (Rocket.toml file and web-vault)
|
||||||
# and the binary from the "build" stage to the current stage
|
# and the binary from the "build" stage to the current stage
|
||||||
WORKDIR /
|
WORKDIR /
|
||||||
COPY --from=vault /web-vault ./web-vault
|
COPY --from=vault /web-vault ./web-vault
|
||||||
|
COPY --from=build /vaultwarden_docker_persistent_volume_check /data/vaultwarden_docker_persistent_volume_check
|
||||||
COPY --from=build /app/target/aarch64-unknown-linux-gnu/release/vaultwarden .
|
COPY --from=build /app/target/aarch64-unknown-linux-gnu/release/vaultwarden .
|
||||||
|
|
||||||
COPY docker/healthcheck.sh /healthcheck.sh
|
COPY docker/healthcheck.sh /healthcheck.sh
|
||||||
|
|
|
@ -78,6 +78,14 @@ RUN touch src/main.rs
|
||||||
# hadolint ignore=DL3059
|
# hadolint ignore=DL3059
|
||||||
RUN cargo build --features ${DB} --release --target=aarch64-unknown-linux-musl
|
RUN cargo build --features ${DB} --release --target=aarch64-unknown-linux-musl
|
||||||
|
|
||||||
|
# Create a special empty file which we check within the application.
|
||||||
|
# If this file exists, then we exit Vaultwarden to prevent data loss when someone forgets to use volumes.
|
||||||
|
# If you really really want to use volatile storage you can set the env `I_REALLY_WANT_VOLATILE_STORAGE=true`
|
||||||
|
# This file should disappear if a volume is mounted on-top of this using a docker volume.
|
||||||
|
# We run this in the build image and copy it over, because the runtime image could be missing some executables.
|
||||||
|
# hadolint ignore=DL3059
|
||||||
|
RUN touch /vaultwarden_docker_persistent_volume_check
|
||||||
|
|
||||||
######################## RUNTIME IMAGE ########################
|
######################## RUNTIME IMAGE ########################
|
||||||
# Create a new stage with a minimal image
|
# Create a new stage with a minimal image
|
||||||
# because we already have a binary built
|
# because we already have a binary built
|
||||||
|
@ -108,16 +116,11 @@ VOLUME /data
|
||||||
EXPOSE 80
|
EXPOSE 80
|
||||||
EXPOSE 3012
|
EXPOSE 3012
|
||||||
|
|
||||||
# Create a special empty file which we check within the application.
|
|
||||||
# If this file exists, then we exit Vaultwarden to prevent data loss when someone forgets to use volumes.
|
|
||||||
# If you really really want to use volatile storage you can set the env `I_REALLY_WANT_VOLATILE_STORAGE=true`
|
|
||||||
# This file should disappear if a volume is mounted on-top of this using a docker volume.
|
|
||||||
RUN touch /data/vaultwarden_docker_persistent_volume_check
|
|
||||||
|
|
||||||
# Copies the files from the context (Rocket.toml file and web-vault)
|
# Copies the files from the context (Rocket.toml file and web-vault)
|
||||||
# and the binary from the "build" stage to the current stage
|
# and the binary from the "build" stage to the current stage
|
||||||
WORKDIR /
|
WORKDIR /
|
||||||
COPY --from=vault /web-vault ./web-vault
|
COPY --from=vault /web-vault ./web-vault
|
||||||
|
COPY --from=build /vaultwarden_docker_persistent_volume_check /data/vaultwarden_docker_persistent_volume_check
|
||||||
COPY --from=build /app/target/aarch64-unknown-linux-musl/release/vaultwarden .
|
COPY --from=build /app/target/aarch64-unknown-linux-musl/release/vaultwarden .
|
||||||
|
|
||||||
COPY docker/healthcheck.sh /healthcheck.sh
|
COPY docker/healthcheck.sh /healthcheck.sh
|
||||||
|
|
|
@ -104,6 +104,14 @@ RUN touch src/main.rs
|
||||||
# hadolint ignore=DL3059
|
# hadolint ignore=DL3059
|
||||||
RUN --mount=type=cache,target=/root/.cargo/git --mount=type=cache,target=/root/.cargo/registry cargo build --features ${DB} --release --target=aarch64-unknown-linux-gnu
|
RUN --mount=type=cache,target=/root/.cargo/git --mount=type=cache,target=/root/.cargo/registry cargo build --features ${DB} --release --target=aarch64-unknown-linux-gnu
|
||||||
|
|
||||||
|
# Create a special empty file which we check within the application.
|
||||||
|
# If this file exists, then we exit Vaultwarden to prevent data loss when someone forgets to use volumes.
|
||||||
|
# If you really really want to use volatile storage you can set the env `I_REALLY_WANT_VOLATILE_STORAGE=true`
|
||||||
|
# This file should disappear if a volume is mounted on-top of this using a docker volume.
|
||||||
|
# We run this in the build image and copy it over, because the runtime image could be missing some executables.
|
||||||
|
# hadolint ignore=DL3059
|
||||||
|
RUN touch /vaultwarden_docker_persistent_volume_check
|
||||||
|
|
||||||
######################## RUNTIME IMAGE ########################
|
######################## RUNTIME IMAGE ########################
|
||||||
# Create a new stage with a minimal image
|
# Create a new stage with a minimal image
|
||||||
# because we already have a binary built
|
# because we already have a binary built
|
||||||
|
@ -136,16 +144,11 @@ VOLUME /data
|
||||||
EXPOSE 80
|
EXPOSE 80
|
||||||
EXPOSE 3012
|
EXPOSE 3012
|
||||||
|
|
||||||
# Create a special empty file which we check within the application.
|
|
||||||
# If this file exists, then we exit Vaultwarden to prevent data loss when someone forgets to use volumes.
|
|
||||||
# If you really really want to use volatile storage you can set the env `I_REALLY_WANT_VOLATILE_STORAGE=true`
|
|
||||||
# This file should disappear if a volume is mounted on-top of this using a docker volume.
|
|
||||||
RUN touch /data/vaultwarden_docker_persistent_volume_check
|
|
||||||
|
|
||||||
# Copies the files from the context (Rocket.toml file and web-vault)
|
# Copies the files from the context (Rocket.toml file and web-vault)
|
||||||
# and the binary from the "build" stage to the current stage
|
# and the binary from the "build" stage to the current stage
|
||||||
WORKDIR /
|
WORKDIR /
|
||||||
COPY --from=vault /web-vault ./web-vault
|
COPY --from=vault /web-vault ./web-vault
|
||||||
|
COPY --from=build /vaultwarden_docker_persistent_volume_check /data/vaultwarden_docker_persistent_volume_check
|
||||||
COPY --from=build /app/target/aarch64-unknown-linux-gnu/release/vaultwarden .
|
COPY --from=build /app/target/aarch64-unknown-linux-gnu/release/vaultwarden .
|
||||||
|
|
||||||
COPY docker/healthcheck.sh /healthcheck.sh
|
COPY docker/healthcheck.sh /healthcheck.sh
|
||||||
|
|
|
@ -78,6 +78,14 @@ RUN touch src/main.rs
|
||||||
# hadolint ignore=DL3059
|
# hadolint ignore=DL3059
|
||||||
RUN --mount=type=cache,target=/root/.cargo/git --mount=type=cache,target=/root/.cargo/registry cargo build --features ${DB} --release --target=aarch64-unknown-linux-musl
|
RUN --mount=type=cache,target=/root/.cargo/git --mount=type=cache,target=/root/.cargo/registry cargo build --features ${DB} --release --target=aarch64-unknown-linux-musl
|
||||||
|
|
||||||
|
# Create a special empty file which we check within the application.
|
||||||
|
# If this file exists, then we exit Vaultwarden to prevent data loss when someone forgets to use volumes.
|
||||||
|
# If you really really want to use volatile storage you can set the env `I_REALLY_WANT_VOLATILE_STORAGE=true`
|
||||||
|
# This file should disappear if a volume is mounted on-top of this using a docker volume.
|
||||||
|
# We run this in the build image and copy it over, because the runtime image could be missing some executables.
|
||||||
|
# hadolint ignore=DL3059
|
||||||
|
RUN touch /vaultwarden_docker_persistent_volume_check
|
||||||
|
|
||||||
######################## RUNTIME IMAGE ########################
|
######################## RUNTIME IMAGE ########################
|
||||||
# Create a new stage with a minimal image
|
# Create a new stage with a minimal image
|
||||||
# because we already have a binary built
|
# because we already have a binary built
|
||||||
|
@ -108,16 +116,11 @@ VOLUME /data
|
||||||
EXPOSE 80
|
EXPOSE 80
|
||||||
EXPOSE 3012
|
EXPOSE 3012
|
||||||
|
|
||||||
# Create a special empty file which we check within the application.
|
|
||||||
# If this file exists, then we exit Vaultwarden to prevent data loss when someone forgets to use volumes.
|
|
||||||
# If you really really want to use volatile storage you can set the env `I_REALLY_WANT_VOLATILE_STORAGE=true`
|
|
||||||
# This file should disappear if a volume is mounted on-top of this using a docker volume.
|
|
||||||
RUN touch /data/vaultwarden_docker_persistent_volume_check
|
|
||||||
|
|
||||||
# Copies the files from the context (Rocket.toml file and web-vault)
|
# Copies the files from the context (Rocket.toml file and web-vault)
|
||||||
# and the binary from the "build" stage to the current stage
|
# and the binary from the "build" stage to the current stage
|
||||||
WORKDIR /
|
WORKDIR /
|
||||||
COPY --from=vault /web-vault ./web-vault
|
COPY --from=vault /web-vault ./web-vault
|
||||||
|
COPY --from=build /vaultwarden_docker_persistent_volume_check /data/vaultwarden_docker_persistent_volume_check
|
||||||
COPY --from=build /app/target/aarch64-unknown-linux-musl/release/vaultwarden .
|
COPY --from=build /app/target/aarch64-unknown-linux-musl/release/vaultwarden .
|
||||||
|
|
||||||
COPY docker/healthcheck.sh /healthcheck.sh
|
COPY docker/healthcheck.sh /healthcheck.sh
|
||||||
|
|
|
@ -104,6 +104,14 @@ RUN touch src/main.rs
|
||||||
# hadolint ignore=DL3059
|
# hadolint ignore=DL3059
|
||||||
RUN cargo build --features ${DB} --release --target=arm-unknown-linux-gnueabi
|
RUN cargo build --features ${DB} --release --target=arm-unknown-linux-gnueabi
|
||||||
|
|
||||||
|
# Create a special empty file which we check within the application.
|
||||||
|
# If this file exists, then we exit Vaultwarden to prevent data loss when someone forgets to use volumes.
|
||||||
|
# If you really really want to use volatile storage you can set the env `I_REALLY_WANT_VOLATILE_STORAGE=true`
|
||||||
|
# This file should disappear if a volume is mounted on-top of this using a docker volume.
|
||||||
|
# We run this in the build image and copy it over, because the runtime image could be missing some executables.
|
||||||
|
# hadolint ignore=DL3059
|
||||||
|
RUN touch /vaultwarden_docker_persistent_volume_check
|
||||||
|
|
||||||
######################## RUNTIME IMAGE ########################
|
######################## RUNTIME IMAGE ########################
|
||||||
# Create a new stage with a minimal image
|
# Create a new stage with a minimal image
|
||||||
# because we already have a binary built
|
# because we already have a binary built
|
||||||
|
@ -141,16 +149,11 @@ VOLUME /data
|
||||||
EXPOSE 80
|
EXPOSE 80
|
||||||
EXPOSE 3012
|
EXPOSE 3012
|
||||||
|
|
||||||
# Create a special empty file which we check within the application.
|
|
||||||
# If this file exists, then we exit Vaultwarden to prevent data loss when someone forgets to use volumes.
|
|
||||||
# If you really really want to use volatile storage you can set the env `I_REALLY_WANT_VOLATILE_STORAGE=true`
|
|
||||||
# This file should disappear if a volume is mounted on-top of this using a docker volume.
|
|
||||||
RUN touch /data/vaultwarden_docker_persistent_volume_check
|
|
||||||
|
|
||||||
# Copies the files from the context (Rocket.toml file and web-vault)
|
# Copies the files from the context (Rocket.toml file and web-vault)
|
||||||
# and the binary from the "build" stage to the current stage
|
# and the binary from the "build" stage to the current stage
|
||||||
WORKDIR /
|
WORKDIR /
|
||||||
COPY --from=vault /web-vault ./web-vault
|
COPY --from=vault /web-vault ./web-vault
|
||||||
|
COPY --from=build /vaultwarden_docker_persistent_volume_check /data/vaultwarden_docker_persistent_volume_check
|
||||||
COPY --from=build /app/target/arm-unknown-linux-gnueabi/release/vaultwarden .
|
COPY --from=build /app/target/arm-unknown-linux-gnueabi/release/vaultwarden .
|
||||||
|
|
||||||
COPY docker/healthcheck.sh /healthcheck.sh
|
COPY docker/healthcheck.sh /healthcheck.sh
|
||||||
|
|
|
@ -80,6 +80,14 @@ RUN touch src/main.rs
|
||||||
# hadolint ignore=DL3059
|
# hadolint ignore=DL3059
|
||||||
RUN cargo build --features ${DB} --release --target=arm-unknown-linux-musleabi
|
RUN cargo build --features ${DB} --release --target=arm-unknown-linux-musleabi
|
||||||
|
|
||||||
|
# Create a special empty file which we check within the application.
|
||||||
|
# If this file exists, then we exit Vaultwarden to prevent data loss when someone forgets to use volumes.
|
||||||
|
# If you really really want to use volatile storage you can set the env `I_REALLY_WANT_VOLATILE_STORAGE=true`
|
||||||
|
# This file should disappear if a volume is mounted on-top of this using a docker volume.
|
||||||
|
# We run this in the build image and copy it over, because the runtime image could be missing some executables.
|
||||||
|
# hadolint ignore=DL3059
|
||||||
|
RUN touch /vaultwarden_docker_persistent_volume_check
|
||||||
|
|
||||||
######################## RUNTIME IMAGE ########################
|
######################## RUNTIME IMAGE ########################
|
||||||
# Create a new stage with a minimal image
|
# Create a new stage with a minimal image
|
||||||
# because we already have a binary built
|
# because we already have a binary built
|
||||||
|
@ -110,16 +118,11 @@ VOLUME /data
|
||||||
EXPOSE 80
|
EXPOSE 80
|
||||||
EXPOSE 3012
|
EXPOSE 3012
|
||||||
|
|
||||||
# Create a special empty file which we check within the application.
|
|
||||||
# If this file exists, then we exit Vaultwarden to prevent data loss when someone forgets to use volumes.
|
|
||||||
# If you really really want to use volatile storage you can set the env `I_REALLY_WANT_VOLATILE_STORAGE=true`
|
|
||||||
# This file should disappear if a volume is mounted on-top of this using a docker volume.
|
|
||||||
RUN touch /data/vaultwarden_docker_persistent_volume_check
|
|
||||||
|
|
||||||
# Copies the files from the context (Rocket.toml file and web-vault)
|
# Copies the files from the context (Rocket.toml file and web-vault)
|
||||||
# and the binary from the "build" stage to the current stage
|
# and the binary from the "build" stage to the current stage
|
||||||
WORKDIR /
|
WORKDIR /
|
||||||
COPY --from=vault /web-vault ./web-vault
|
COPY --from=vault /web-vault ./web-vault
|
||||||
|
COPY --from=build /vaultwarden_docker_persistent_volume_check /data/vaultwarden_docker_persistent_volume_check
|
||||||
COPY --from=build /app/target/arm-unknown-linux-musleabi/release/vaultwarden .
|
COPY --from=build /app/target/arm-unknown-linux-musleabi/release/vaultwarden .
|
||||||
|
|
||||||
COPY docker/healthcheck.sh /healthcheck.sh
|
COPY docker/healthcheck.sh /healthcheck.sh
|
||||||
|
|
|
@ -104,6 +104,14 @@ RUN touch src/main.rs
|
||||||
# hadolint ignore=DL3059
|
# hadolint ignore=DL3059
|
||||||
RUN --mount=type=cache,target=/root/.cargo/git --mount=type=cache,target=/root/.cargo/registry cargo build --features ${DB} --release --target=arm-unknown-linux-gnueabi
|
RUN --mount=type=cache,target=/root/.cargo/git --mount=type=cache,target=/root/.cargo/registry cargo build --features ${DB} --release --target=arm-unknown-linux-gnueabi
|
||||||
|
|
||||||
|
# Create a special empty file which we check within the application.
|
||||||
|
# If this file exists, then we exit Vaultwarden to prevent data loss when someone forgets to use volumes.
|
||||||
|
# If you really really want to use volatile storage you can set the env `I_REALLY_WANT_VOLATILE_STORAGE=true`
|
||||||
|
# This file should disappear if a volume is mounted on-top of this using a docker volume.
|
||||||
|
# We run this in the build image and copy it over, because the runtime image could be missing some executables.
|
||||||
|
# hadolint ignore=DL3059
|
||||||
|
RUN touch /vaultwarden_docker_persistent_volume_check
|
||||||
|
|
||||||
######################## RUNTIME IMAGE ########################
|
######################## RUNTIME IMAGE ########################
|
||||||
# Create a new stage with a minimal image
|
# Create a new stage with a minimal image
|
||||||
# because we already have a binary built
|
# because we already have a binary built
|
||||||
|
@ -141,16 +149,11 @@ VOLUME /data
|
||||||
EXPOSE 80
|
EXPOSE 80
|
||||||
EXPOSE 3012
|
EXPOSE 3012
|
||||||
|
|
||||||
# Create a special empty file which we check within the application.
|
|
||||||
# If this file exists, then we exit Vaultwarden to prevent data loss when someone forgets to use volumes.
|
|
||||||
# If you really really want to use volatile storage you can set the env `I_REALLY_WANT_VOLATILE_STORAGE=true`
|
|
||||||
# This file should disappear if a volume is mounted on-top of this using a docker volume.
|
|
||||||
RUN touch /data/vaultwarden_docker_persistent_volume_check
|
|
||||||
|
|
||||||
# Copies the files from the context (Rocket.toml file and web-vault)
|
# Copies the files from the context (Rocket.toml file and web-vault)
|
||||||
# and the binary from the "build" stage to the current stage
|
# and the binary from the "build" stage to the current stage
|
||||||
WORKDIR /
|
WORKDIR /
|
||||||
COPY --from=vault /web-vault ./web-vault
|
COPY --from=vault /web-vault ./web-vault
|
||||||
|
COPY --from=build /vaultwarden_docker_persistent_volume_check /data/vaultwarden_docker_persistent_volume_check
|
||||||
COPY --from=build /app/target/arm-unknown-linux-gnueabi/release/vaultwarden .
|
COPY --from=build /app/target/arm-unknown-linux-gnueabi/release/vaultwarden .
|
||||||
|
|
||||||
COPY docker/healthcheck.sh /healthcheck.sh
|
COPY docker/healthcheck.sh /healthcheck.sh
|
||||||
|
|
|
@ -80,6 +80,14 @@ RUN touch src/main.rs
|
||||||
# hadolint ignore=DL3059
|
# hadolint ignore=DL3059
|
||||||
RUN --mount=type=cache,target=/root/.cargo/git --mount=type=cache,target=/root/.cargo/registry cargo build --features ${DB} --release --target=arm-unknown-linux-musleabi
|
RUN --mount=type=cache,target=/root/.cargo/git --mount=type=cache,target=/root/.cargo/registry cargo build --features ${DB} --release --target=arm-unknown-linux-musleabi
|
||||||
|
|
||||||
|
# Create a special empty file which we check within the application.
|
||||||
|
# If this file exists, then we exit Vaultwarden to prevent data loss when someone forgets to use volumes.
|
||||||
|
# If you really really want to use volatile storage you can set the env `I_REALLY_WANT_VOLATILE_STORAGE=true`
|
||||||
|
# This file should disappear if a volume is mounted on-top of this using a docker volume.
|
||||||
|
# We run this in the build image and copy it over, because the runtime image could be missing some executables.
|
||||||
|
# hadolint ignore=DL3059
|
||||||
|
RUN touch /vaultwarden_docker_persistent_volume_check
|
||||||
|
|
||||||
######################## RUNTIME IMAGE ########################
|
######################## RUNTIME IMAGE ########################
|
||||||
# Create a new stage with a minimal image
|
# Create a new stage with a minimal image
|
||||||
# because we already have a binary built
|
# because we already have a binary built
|
||||||
|
@ -110,16 +118,11 @@ VOLUME /data
|
||||||
EXPOSE 80
|
EXPOSE 80
|
||||||
EXPOSE 3012
|
EXPOSE 3012
|
||||||
|
|
||||||
# Create a special empty file which we check within the application.
|
|
||||||
# If this file exists, then we exit Vaultwarden to prevent data loss when someone forgets to use volumes.
|
|
||||||
# If you really really want to use volatile storage you can set the env `I_REALLY_WANT_VOLATILE_STORAGE=true`
|
|
||||||
# This file should disappear if a volume is mounted on-top of this using a docker volume.
|
|
||||||
RUN touch /data/vaultwarden_docker_persistent_volume_check
|
|
||||||
|
|
||||||
# Copies the files from the context (Rocket.toml file and web-vault)
|
# Copies the files from the context (Rocket.toml file and web-vault)
|
||||||
# and the binary from the "build" stage to the current stage
|
# and the binary from the "build" stage to the current stage
|
||||||
WORKDIR /
|
WORKDIR /
|
||||||
COPY --from=vault /web-vault ./web-vault
|
COPY --from=vault /web-vault ./web-vault
|
||||||
|
COPY --from=build /vaultwarden_docker_persistent_volume_check /data/vaultwarden_docker_persistent_volume_check
|
||||||
COPY --from=build /app/target/arm-unknown-linux-musleabi/release/vaultwarden .
|
COPY --from=build /app/target/arm-unknown-linux-musleabi/release/vaultwarden .
|
||||||
|
|
||||||
COPY docker/healthcheck.sh /healthcheck.sh
|
COPY docker/healthcheck.sh /healthcheck.sh
|
||||||
|
|
|
@ -104,6 +104,14 @@ RUN touch src/main.rs
|
||||||
# hadolint ignore=DL3059
|
# hadolint ignore=DL3059
|
||||||
RUN cargo build --features ${DB} --release --target=armv7-unknown-linux-gnueabihf
|
RUN cargo build --features ${DB} --release --target=armv7-unknown-linux-gnueabihf
|
||||||
|
|
||||||
|
# Create a special empty file which we check within the application.
|
||||||
|
# If this file exists, then we exit Vaultwarden to prevent data loss when someone forgets to use volumes.
|
||||||
|
# If you really really want to use volatile storage you can set the env `I_REALLY_WANT_VOLATILE_STORAGE=true`
|
||||||
|
# This file should disappear if a volume is mounted on-top of this using a docker volume.
|
||||||
|
# We run this in the build image and copy it over, because the runtime image could be missing some executables.
|
||||||
|
# hadolint ignore=DL3059
|
||||||
|
RUN touch /vaultwarden_docker_persistent_volume_check
|
||||||
|
|
||||||
######################## RUNTIME IMAGE ########################
|
######################## RUNTIME IMAGE ########################
|
||||||
# Create a new stage with a minimal image
|
# Create a new stage with a minimal image
|
||||||
# because we already have a binary built
|
# because we already have a binary built
|
||||||
|
@ -136,16 +144,11 @@ VOLUME /data
|
||||||
EXPOSE 80
|
EXPOSE 80
|
||||||
EXPOSE 3012
|
EXPOSE 3012
|
||||||
|
|
||||||
# Create a special empty file which we check within the application.
|
|
||||||
# If this file exists, then we exit Vaultwarden to prevent data loss when someone forgets to use volumes.
|
|
||||||
# If you really really want to use volatile storage you can set the env `I_REALLY_WANT_VOLATILE_STORAGE=true`
|
|
||||||
# This file should disappear if a volume is mounted on-top of this using a docker volume.
|
|
||||||
RUN touch /data/vaultwarden_docker_persistent_volume_check
|
|
||||||
|
|
||||||
# Copies the files from the context (Rocket.toml file and web-vault)
|
# Copies the files from the context (Rocket.toml file and web-vault)
|
||||||
# and the binary from the "build" stage to the current stage
|
# and the binary from the "build" stage to the current stage
|
||||||
WORKDIR /
|
WORKDIR /
|
||||||
COPY --from=vault /web-vault ./web-vault
|
COPY --from=vault /web-vault ./web-vault
|
||||||
|
COPY --from=build /vaultwarden_docker_persistent_volume_check /data/vaultwarden_docker_persistent_volume_check
|
||||||
COPY --from=build /app/target/armv7-unknown-linux-gnueabihf/release/vaultwarden .
|
COPY --from=build /app/target/armv7-unknown-linux-gnueabihf/release/vaultwarden .
|
||||||
|
|
||||||
COPY docker/healthcheck.sh /healthcheck.sh
|
COPY docker/healthcheck.sh /healthcheck.sh
|
||||||
|
|
|
@ -78,6 +78,14 @@ RUN touch src/main.rs
|
||||||
# hadolint ignore=DL3059
|
# hadolint ignore=DL3059
|
||||||
RUN cargo build --features ${DB} --release --target=armv7-unknown-linux-musleabihf
|
RUN cargo build --features ${DB} --release --target=armv7-unknown-linux-musleabihf
|
||||||
|
|
||||||
|
# Create a special empty file which we check within the application.
|
||||||
|
# If this file exists, then we exit Vaultwarden to prevent data loss when someone forgets to use volumes.
|
||||||
|
# If you really really want to use volatile storage you can set the env `I_REALLY_WANT_VOLATILE_STORAGE=true`
|
||||||
|
# This file should disappear if a volume is mounted on-top of this using a docker volume.
|
||||||
|
# We run this in the build image and copy it over, because the runtime image could be missing some executables.
|
||||||
|
# hadolint ignore=DL3059
|
||||||
|
RUN touch /vaultwarden_docker_persistent_volume_check
|
||||||
|
|
||||||
######################## RUNTIME IMAGE ########################
|
######################## RUNTIME IMAGE ########################
|
||||||
# Create a new stage with a minimal image
|
# Create a new stage with a minimal image
|
||||||
# because we already have a binary built
|
# because we already have a binary built
|
||||||
|
@ -108,16 +116,11 @@ VOLUME /data
|
||||||
EXPOSE 80
|
EXPOSE 80
|
||||||
EXPOSE 3012
|
EXPOSE 3012
|
||||||
|
|
||||||
# Create a special empty file which we check within the application.
|
|
||||||
# If this file exists, then we exit Vaultwarden to prevent data loss when someone forgets to use volumes.
|
|
||||||
# If you really really want to use volatile storage you can set the env `I_REALLY_WANT_VOLATILE_STORAGE=true`
|
|
||||||
# This file should disappear if a volume is mounted on-top of this using a docker volume.
|
|
||||||
RUN touch /data/vaultwarden_docker_persistent_volume_check
|
|
||||||
|
|
||||||
# Copies the files from the context (Rocket.toml file and web-vault)
|
# Copies the files from the context (Rocket.toml file and web-vault)
|
||||||
# and the binary from the "build" stage to the current stage
|
# and the binary from the "build" stage to the current stage
|
||||||
WORKDIR /
|
WORKDIR /
|
||||||
COPY --from=vault /web-vault ./web-vault
|
COPY --from=vault /web-vault ./web-vault
|
||||||
|
COPY --from=build /vaultwarden_docker_persistent_volume_check /data/vaultwarden_docker_persistent_volume_check
|
||||||
COPY --from=build /app/target/armv7-unknown-linux-musleabihf/release/vaultwarden .
|
COPY --from=build /app/target/armv7-unknown-linux-musleabihf/release/vaultwarden .
|
||||||
|
|
||||||
COPY docker/healthcheck.sh /healthcheck.sh
|
COPY docker/healthcheck.sh /healthcheck.sh
|
||||||
|
|
|
@ -104,6 +104,14 @@ RUN touch src/main.rs
|
||||||
# hadolint ignore=DL3059
|
# hadolint ignore=DL3059
|
||||||
RUN --mount=type=cache,target=/root/.cargo/git --mount=type=cache,target=/root/.cargo/registry cargo build --features ${DB} --release --target=armv7-unknown-linux-gnueabihf
|
RUN --mount=type=cache,target=/root/.cargo/git --mount=type=cache,target=/root/.cargo/registry cargo build --features ${DB} --release --target=armv7-unknown-linux-gnueabihf
|
||||||
|
|
||||||
|
# Create a special empty file which we check within the application.
|
||||||
|
# If this file exists, then we exit Vaultwarden to prevent data loss when someone forgets to use volumes.
|
||||||
|
# If you really really want to use volatile storage you can set the env `I_REALLY_WANT_VOLATILE_STORAGE=true`
|
||||||
|
# This file should disappear if a volume is mounted on-top of this using a docker volume.
|
||||||
|
# We run this in the build image and copy it over, because the runtime image could be missing some executables.
|
||||||
|
# hadolint ignore=DL3059
|
||||||
|
RUN touch /vaultwarden_docker_persistent_volume_check
|
||||||
|
|
||||||
######################## RUNTIME IMAGE ########################
|
######################## RUNTIME IMAGE ########################
|
||||||
# Create a new stage with a minimal image
|
# Create a new stage with a minimal image
|
||||||
# because we already have a binary built
|
# because we already have a binary built
|
||||||
|
@ -136,16 +144,11 @@ VOLUME /data
|
||||||
EXPOSE 80
|
EXPOSE 80
|
||||||
EXPOSE 3012
|
EXPOSE 3012
|
||||||
|
|
||||||
# Create a special empty file which we check within the application.
|
|
||||||
# If this file exists, then we exit Vaultwarden to prevent data loss when someone forgets to use volumes.
|
|
||||||
# If you really really want to use volatile storage you can set the env `I_REALLY_WANT_VOLATILE_STORAGE=true`
|
|
||||||
# This file should disappear if a volume is mounted on-top of this using a docker volume.
|
|
||||||
RUN touch /data/vaultwarden_docker_persistent_volume_check
|
|
||||||
|
|
||||||
# Copies the files from the context (Rocket.toml file and web-vault)
|
# Copies the files from the context (Rocket.toml file and web-vault)
|
||||||
# and the binary from the "build" stage to the current stage
|
# and the binary from the "build" stage to the current stage
|
||||||
WORKDIR /
|
WORKDIR /
|
||||||
COPY --from=vault /web-vault ./web-vault
|
COPY --from=vault /web-vault ./web-vault
|
||||||
|
COPY --from=build /vaultwarden_docker_persistent_volume_check /data/vaultwarden_docker_persistent_volume_check
|
||||||
COPY --from=build /app/target/armv7-unknown-linux-gnueabihf/release/vaultwarden .
|
COPY --from=build /app/target/armv7-unknown-linux-gnueabihf/release/vaultwarden .
|
||||||
|
|
||||||
COPY docker/healthcheck.sh /healthcheck.sh
|
COPY docker/healthcheck.sh /healthcheck.sh
|
||||||
|
|
|
@ -78,6 +78,14 @@ RUN touch src/main.rs
|
||||||
# hadolint ignore=DL3059
|
# hadolint ignore=DL3059
|
||||||
RUN --mount=type=cache,target=/root/.cargo/git --mount=type=cache,target=/root/.cargo/registry cargo build --features ${DB} --release --target=armv7-unknown-linux-musleabihf
|
RUN --mount=type=cache,target=/root/.cargo/git --mount=type=cache,target=/root/.cargo/registry cargo build --features ${DB} --release --target=armv7-unknown-linux-musleabihf
|
||||||
|
|
||||||
|
# Create a special empty file which we check within the application.
|
||||||
|
# If this file exists, then we exit Vaultwarden to prevent data loss when someone forgets to use volumes.
|
||||||
|
# If you really really want to use volatile storage you can set the env `I_REALLY_WANT_VOLATILE_STORAGE=true`
|
||||||
|
# This file should disappear if a volume is mounted on-top of this using a docker volume.
|
||||||
|
# We run this in the build image and copy it over, because the runtime image could be missing some executables.
|
||||||
|
# hadolint ignore=DL3059
|
||||||
|
RUN touch /vaultwarden_docker_persistent_volume_check
|
||||||
|
|
||||||
######################## RUNTIME IMAGE ########################
|
######################## RUNTIME IMAGE ########################
|
||||||
# Create a new stage with a minimal image
|
# Create a new stage with a minimal image
|
||||||
# because we already have a binary built
|
# because we already have a binary built
|
||||||
|
@ -108,16 +116,11 @@ VOLUME /data
|
||||||
EXPOSE 80
|
EXPOSE 80
|
||||||
EXPOSE 3012
|
EXPOSE 3012
|
||||||
|
|
||||||
# Create a special empty file which we check within the application.
|
|
||||||
# If this file exists, then we exit Vaultwarden to prevent data loss when someone forgets to use volumes.
|
|
||||||
# If you really really want to use volatile storage you can set the env `I_REALLY_WANT_VOLATILE_STORAGE=true`
|
|
||||||
# This file should disappear if a volume is mounted on-top of this using a docker volume.
|
|
||||||
RUN touch /data/vaultwarden_docker_persistent_volume_check
|
|
||||||
|
|
||||||
# Copies the files from the context (Rocket.toml file and web-vault)
|
# Copies the files from the context (Rocket.toml file and web-vault)
|
||||||
# and the binary from the "build" stage to the current stage
|
# and the binary from the "build" stage to the current stage
|
||||||
WORKDIR /
|
WORKDIR /
|
||||||
COPY --from=vault /web-vault ./web-vault
|
COPY --from=vault /web-vault ./web-vault
|
||||||
|
COPY --from=build /vaultwarden_docker_persistent_volume_check /data/vaultwarden_docker_persistent_volume_check
|
||||||
COPY --from=build /app/target/armv7-unknown-linux-musleabihf/release/vaultwarden .
|
COPY --from=build /app/target/armv7-unknown-linux-musleabihf/release/vaultwarden .
|
||||||
|
|
||||||
COPY docker/healthcheck.sh /healthcheck.sh
|
COPY docker/healthcheck.sh /healthcheck.sh
|
||||||
|
|
Laden …
In neuem Issue referenzieren