fix: cargo install use cargo.lock

- --locked makes use of cargo.lock
Signed-off-by: Lakshya Singh <lakshay.singh1108@gmail.com>
This commit is contained in:
Lakshya Singh 2024-02-21 20:22:48 +05:30
parent e4159120f9
commit df33aad576
No known key found for this signature in database
GPG Key ID: D3239BA6109A2CE7
2 changed files with 3 additions and 3 deletions

View File

@ -91,7 +91,7 @@ RUN git clone $VLS_REPO vls
RUN cd vls && \ RUN cd vls && \
echo building $VLS_GIT_HASH \ echo building $VLS_GIT_HASH \
git checkout $VLS_GIT_HASH && \ git checkout $VLS_GIT_HASH && \
cargo install --path ./vls-proxy --bin remote_hsmd_socket --profile release --root /usr/local/ && \ cargo install --locked --path ./vls-proxy --bin remote_hsmd_socket --profile release --root /usr/local/ && \
cargo clean cargo clean
# final stage with runtime dependencies and pkgs # final stage with runtime dependencies and pkgs

View File

@ -17,8 +17,8 @@ RUN git clone https://gitlab.com/lightning-signer/validating-lightning-signer.gi
RUN cd vls && \ RUN cd vls && \
echo building $VLS_GIT_HASH \ echo building $VLS_GIT_HASH \
git checkout $VLS_GIT_HASH && \ git checkout $VLS_GIT_HASH && \
cargo install --path ./vls-proxy --bin vlsd2 --profile release --root /usr/local/ && \ cargo install --locked --path ./vls-proxy --bin vlsd2 --profile release --root /usr/local/ && \
cargo install --path ./vls-cli --profile release --root /usr/local/ && \ cargo install --locked --path ./vls-cli --profile release --root /usr/local/ && \
cargo clean cargo clean
FROM --platform=${TARGETPLATFORM:-${BUILDPLATFORM:-linux/amd64}} alpine:3.18 as runner FROM --platform=${TARGETPLATFORM:-${BUILDPLATFORM:-linux/amd64}} alpine:3.18 as runner