Browse Source
Make sure the dockerfile builds the project, instead of assuming the cached dummy is valid
pull/284/head
Daniel García
6 years ago
No known key found for this signature in database
GPG Key ID: FC8A7D14C3CD543A
1 changed files with
3 additions and
0 deletions
-
Dockerfile
|
|
@ -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 |
|
|
|