invalidate Docker cache
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
2024-06-05 20:55:04 +02:00
parent 046683cd98
commit 37f5648ad5

View File

@@ -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