From 2716f3ad9f1dc6c04b414a1bc166611cb36bd0e9 Mon Sep 17 00:00:00 2001 From: trivernis Date: Sat, 9 Apr 2022 14:15:44 +0200 Subject: [PATCH] Remove caching of rust builds in Containerfile (for now) Signed-off-by: trivernis --- Containerfile | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/Containerfile b/Containerfile index 65559a3..7f43c10 100644 --- a/Containerfile +++ b/Containerfile @@ -11,11 +11,9 @@ COPY Cargo.toml Cargo.lock ./ COPY src ./src COPY bot-coreutils ./bot-coreutils COPY bot-database ./bot-database -RUN --mount=type=cache,target=/usr/local/cargo/registry \ - --mount=type=cache,target=/usr/src/tobi/target \ - cargo build --release +RUN cargo build --release RUN mkdir /tmp/tobi -RUN --mount=type=cache,target=/usr/src/tobi/target cp target/release/tobi-rs /tmp/tobi/ +RUN cp target/release/tobi-rs /tmp/tobi/ FROM docker.io/bitnami/minideb:${DEBIAN_RELEASE} AS runtime-base RUN apt update