Skip to content

Commit

Permalink
Adding docker buildkit for test dependency caching
Browse files Browse the repository at this point in the history
  • Loading branch information
Paul FREAKN Baker committed Aug 18, 2022
1 parent 0c785e7 commit 9826d67
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion crates/target_rust/docker/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
# syntax=docker/dockerfile:1
FROM rust:1.63

ARG MAIN
Expand All @@ -13,5 +14,5 @@ COPY /main.rs /work/src/main.rs
COPY /gen /work/src/jtd_codegen_e2e/
RUN sed -i -e "s/MAIN/$MAIN/g" /work/src/main.rs

RUN cargo build
RUN --mount=type=cache,target="${HOME}/.cargo" cargo build
ENTRYPOINT target/debug/jtd_e2e_test

0 comments on commit 9826d67

Please sign in to comment.