From 82f1a3207f574f06d009b49f610684f9e1709a38 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Orhun=20Parmaks=C4=B1z?= Date: Sun, 14 May 2023 21:44:22 +0300 Subject: [PATCH] chore(docker): remove dependency caching from Dockerfile --- Dockerfile | 5 ----- 1 file changed, 5 deletions(-) diff --git a/Dockerfile b/Dockerfile index b15eb8b..e007c11 100644 --- a/Dockerfile +++ b/Dockerfile @@ -2,11 +2,6 @@ FROM rust:1.67.0-alpine3.17 as builder WORKDIR /app RUN apk update RUN apk add --no-cache musl-dev -COPY Cargo.toml Cargo.toml -RUN mkdir -p src/ -RUN echo "fn main() {println!(\"failed to build\")}" > src/main.rs -RUN cargo build --release -RUN rm -f target/release/deps/rustypaste* COPY . . RUN cargo build --locked --release RUN mkdir -p build-out/