From 37f5648ad597e92aa4fb7625e51a92719c8987aa Mon Sep 17 00:00:00 2001 From: Johannes Heuel Date: Wed, 5 Jun 2024 20:55:04 +0200 Subject: [PATCH] invalidate Docker cache --- Dockerfile | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/Dockerfile b/Dockerfile index c6bf8c1..540e3b6 100644 --- a/Dockerfile +++ b/Dockerfile @@ -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