mirror of
https://github.com/dani-garcia/vaultwarden
synced 2024-11-22 03:43:06 +00:00
Make sure the dockerfile builds the project, instead of assuming the cached dummy is valid
This commit is contained in:
parent
2129946d14
commit
e34f75c267
1 changed files with 3 additions and 0 deletions
|
@ -53,6 +53,9 @@ RUN find . -not -path "./target*" -delete
|
|||
# To avoid copying unneeded files, use .dockerignore
|
||||
COPY . .
|
||||
|
||||
# Make sure that we actually build the project
|
||||
RUN touch src/main.rs
|
||||
|
||||
# Builds again, this time it'll just be
|
||||
# your actual source files being built
|
||||
RUN cargo build --release
|
||||
|
|
Loading…
Reference in a new issue