From fad849262ec0119ef8f42134055375ed2902061e Mon Sep 17 00:00:00 2001 From: Stefano Pigozzi Date: Fri, 12 Jul 2024 05:19:04 +0200 Subject: [PATCH] Revert "Improve Docker build caching" This reverts commit d2a7831d4cb9319a4e9882577afccee1f33d041c. --- Dockerfile | 12 ------------ 1 file changed, 12 deletions(-) diff --git a/Dockerfile b/Dockerfile index 1b333e6d..b58dd3a6 100644 --- a/Dockerfile +++ b/Dockerfile @@ -60,18 +60,6 @@ RUN \ apt-get install --assume-yes libpq-dev:armhf; \ fi -COPY ./Cargo.toml ./Cargo.toml -COPY ./Cargo.lock ./Cargo.lock -RUN \ - if [ "${TARGETPLATFORM}" = "linux/amd64" ]; then \ - RUSTTARGET=x86_64-unknown-linux-gnu; \ - elif [ "${TARGETPLATFORM}" = "linux/arm64" ]; then \ - RUSTTARGET=aarch64-unknown-linux-gnu; \ - elif [ "${TARGETPLATFORM}" = "linux/arm/v7" ]; then \ - RUSTTARGET=armv7-unknown-linux-gnueabihf; \ - fi && \ - cargo fetch --locked --target=${RUSTTARGET} - COPY ./ ./ # This has reached a new level of hack