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