Skip to content

Commit

Permalink
cache whole cargo directory in Docker
Browse files Browse the repository at this point in the history
  • Loading branch information
jelni committed Jul 8, 2024
1 parent c42655a commit 4a11511
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ WORKDIR /app
COPY Cargo.toml Cargo.lock ./
COPY src src
COPY .cargo .cargo
RUN --mount=type=cache,target=/usr/local/cargo/registry \
RUN --mount=type=cache,target=/usr/local/cargo \
--mount=type=cache,target=target \
cargo build --release \
&& cp target/release/craiyon-bot craiyon-bot
Expand Down

0 comments on commit 4a11511

Please sign in to comment.