invalidate Docker cache
All checks were successful
continuous-integration/drone/push Build is passing
All checks were successful
continuous-integration/drone/push Build is passing
This commit is contained in:
@@ -8,11 +8,13 @@ WORKDIR "/app"
|
||||
|
||||
# Cache dependencies
|
||||
COPY Cargo.toml Cargo.lock .
|
||||
RUN mkdir src && echo "fn main() {}" > src/main.rs
|
||||
RUN mkdir src \
|
||||
&& echo 'fn main() { panic!("Dummy function called!"); }' > ./src/main.rs
|
||||
RUN cargo build --release --locked
|
||||
|
||||
# Build
|
||||
COPY . .
|
||||
RUN touch src/main.rs
|
||||
RUN cargo build --release --locked
|
||||
|
||||
# Release image
|
||||
|
||||
Reference in New Issue
Block a user