From 162effc88cb487bb895fd3f583e9ac4bf09fe132 Mon Sep 17 00:00:00 2001 From: Paul Kuruvilla Date: Fri, 23 Aug 2024 11:07:41 +0100 Subject: [PATCH] Remove unnecessary cleanup commands from rust-1.77 Dockerfile. --- dockerfiles/rust-1.77.Dockerfile | 12 ------------ 1 file changed, 12 deletions(-) diff --git a/dockerfiles/rust-1.77.Dockerfile b/dockerfiles/rust-1.77.Dockerfile index 6d601673..6c334a40 100644 --- a/dockerfiles/rust-1.77.Dockerfile +++ b/dockerfiles/rust-1.77.Dockerfile @@ -8,18 +8,6 @@ COPY --exclude=.git --exclude=README.md . /app RUN cargo build --release --target-dir=/tmp/codecrafters-redis-target -RUN rm /tmp/codecrafters-redis-target/release/redis-starter-rust -RUN rm /tmp/codecrafters-redis-target/release/redis-starter-rust.d - -# Build caching schenanigans, see if this can be simplified -RUN find /tmp/codecrafters-redis-target/release -type f -maxdepth 1 -delete -RUN rm -f /tmp/codecrafters-redis-target/release/deps/*redis_starter_rust* -RUN rm -f /tmp/codecrafters-redis-target/release/deps/redis_starter_rust* -RUN rm -f /tmp/codecrafters-redis-target/release/.fingerprint/*redis_starter_rust* -RUN rm -f /tmp/codecrafters-redis-target/release/.fingerprint/redis_starter_rust* - -RUN rm -rf /app/src - RUN echo "cd \${CODECRAFTERS_REPOSITORY_DIR} && cargo build --release --target-dir=/tmp/codecrafters-redis-target --manifest-path Cargo.toml" > /codecrafters-precompile.sh RUN chmod +x /codecrafters-precompile.sh