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
2 changed files with 3 additions and 3 deletions

View File

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