Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion images/Dockerfile.bottlecap.alpine.compile
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,9 @@ WORKDIR /tmp/dd/bottlecap
RUN --mount=type=cache,target=/root/.cargo/git \
--mount=type=cache,target=/root/.cargo/registry \
--mount=type=bind,source=.,target=/tmp/dd,rw \
--mount=type=cache,target=/tmp/dd/bottlecap/target \
# sharing=private gives each concurrent build its own target cache instead of
# blocking on cargo's build-directory lock while waiting for a shared mount
--mount=type=cache,sharing=private,target=/tmp/dd/bottlecap/target \
Comment thread
lucaspimentel marked this conversation as resolved.
if [ "${FIPS}" = "1" ]; then \
export FEATURES=fips; \
if [ "${PLATFORM}" = "aarch64" ]; then \
Expand Down
4 changes: 3 additions & 1 deletion images/Dockerfile.bottlecap.compile
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,9 @@ WORKDIR /tmp/dd/bottlecap
RUN --mount=type=cache,target=/usr/local/cargo/git \
--mount=type=cache,target=/usr/local/cargo/registry \
--mount=type=bind,source=.,target=/tmp/dd,rw \
--mount=type=cache,target=/tmp/dd/bottlecap/target \
# sharing=private gives each concurrent build its own target cache instead of
# blocking on cargo's build-directory lock while waiting for a shared mount
--mount=type=cache,sharing=private,target=/tmp/dd/bottlecap/target \
Comment thread
lucaspimentel marked this conversation as resolved.
if [ "${FIPS}" = "1" ]; then \
export FEATURES=fips; \
else \
Expand Down
Loading