Skip to content

Commit bdb7e91

Browse files
fix: install with locked to prevent cargo from updating deps during cargo install
1 parent 4a1372d commit bdb7e91

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ RUN touch ./src/main.rs
6565
RUN --mount=type=cache,target=/build/${APPLICATION_NAME}/target \
6666
--mount=type=cache,id=cargo-git,target=/usr/local/cargo/git/db,sharing=locked \
6767
--mount=type=cache,id=cargo-registery,target=/usr/local/cargo/registry/,sharing=locked \
68-
./build.sh install --path . --target ${TARGET} --root /output
68+
./build.sh install --path . --locked --target ${TARGET} --root /output
6969

7070
# Container user setup
7171
FROM --platform=${BUILDPLATFORM} alpine:3.22.0@sha256:8a1f59ffb675680d47db6337b49d22281a139e9d709335b492be023728e11715 AS passwd-build

0 commit comments

Comments
 (0)