Skip to content

Commit

Permalink
separate mount flags
Browse files Browse the repository at this point in the history
  • Loading branch information
codingkarthik committed Jan 28, 2025
1 parent 5d3a19e commit a153eec
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@ FROM rust:1.78.0-slim AS chef
WORKDIR /app
RUN apt-get update && \
apt-get install -y pkg-config libssl-dev && \
rm -rf /var/lib/apt/lists/* && \
--mount=type=cache,target=/usr/local/cargo/registry \
rm -rf /var/lib/apt/lists/*
RUN --mount=type=cache,target=/usr/local/cargo/registry \
cargo install cargo-chef

# Planning stage
Expand Down

0 comments on commit a153eec

Please sign in to comment.