Skip to content

Commit

Permalink
fix: do not cache cargo bin
Browse files Browse the repository at this point in the history
  • Loading branch information
mchristopher committed Aug 28, 2024
1 parent f6287ff commit 90bd053
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 4 deletions.
2 changes: 0 additions & 2 deletions deployment/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,6 @@ RUN echo $CARGO_PROFILE_RELEASE_DEBUG
RUN echo $BUILD_FEATURES
# Build our project dependencies, not our application!
RUN \
--mount=type=cache,target=/usr/local/cargo/bin \
--mount=type=cache,target=/usr/local/cargo/registry/index \
--mount=type=cache,target=/usr/local/cargo/registry/cache \
--mount=type=cache,target=/usr/local/cargo/git/db \
Expand All @@ -51,7 +50,6 @@ RUN git clone --depth=1 https://github.com/FuelLabs/chain-configuration.git /cha
# build application
# note this puts the builds outside of the cache dirs so the run image can copy them
RUN \
--mount=type=cache,target=/usr/local/cargo/bin \
--mount=type=cache,target=/usr/local/cargo/registry/index \
--mount=type=cache,target=/usr/local/cargo/registry/cache \
--mount=type=cache,target=/usr/local/cargo/git/db \
Expand Down
2 changes: 0 additions & 2 deletions deployment/e2e-client.Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,6 @@ ENV CARGO_NET_GIT_FETCH_WITH_CLI=true
COPY --from=planner /build/recipe.json recipe.json
# Build our project dependencies, not our application!
RUN \
--mount=type=cache,target=/usr/local/cargo/bin \
--mount=type=cache,target=/usr/local/cargo/registry/index \
--mount=type=cache,target=/usr/local/cargo/registry/cache \
--mount=type=cache,target=/usr/local/cargo/git/db \
Expand All @@ -28,7 +27,6 @@ RUN \
# all layers should be cached.
COPY . .
RUN \
--mount=type=cache,target=/usr/local/cargo/bin \
--mount=type=cache,target=/usr/local/cargo/registry/index \
--mount=type=cache,target=/usr/local/cargo/registry/cache \
--mount=type=cache,target=/usr/local/cargo/git/db \
Expand Down

0 comments on commit 90bd053

Please sign in to comment.