mirror of
https://github.com/dani-garcia/vaultwarden.git
synced 2025-07-18 10:11:11 +00:00
Remove some duplicate code in Dockerfile with the help of some variables
This commit is contained in:
parent
34ee326ce9
commit
257b143df1
4 changed files with 46 additions and 126 deletions
|
@ -92,7 +92,7 @@ EXPOSE 3012
|
|||
# and the binary from the "build" stage to the current stage
|
||||
COPY Rocket.toml .
|
||||
COPY --from=vault /web-vault ./web-vault
|
||||
COPY --from=build app/target/release/bitwarden_rs .
|
||||
COPY --from=build /app/target/release/bitwarden_rs .
|
||||
|
||||
COPY docker/healthcheck.sh /healthcheck.sh
|
||||
COPY docker/start.sh /start.sh
|
||||
|
|
|
@ -32,7 +32,6 @@ RUN rustup set profile minimal
|
|||
ENV USER "root"
|
||||
ENV RUSTFLAGS='-C link-arg=-s'
|
||||
|
||||
|
||||
# Creates a dummy project used to grab dependencies
|
||||
RUN USER=root cargo new --bin /app
|
||||
WORKDIR /app
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue