Skip to content

Commit 9c78baf

Browse files
authored
fix: docker build (#163)
1 parent e953939 commit 9c78baf

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

docker/Dockerfile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,11 +24,11 @@ RUN apt-get update && apt-get install -y clang lld
2424
FROM chef AS builder
2525
WORKDIR /iota
2626

27-
COPY Cargo.toml ./
27+
COPY Cargo.toml Cargo.lock ./
2828
COPY src ./src
2929
ARG ENTRY_BINARY=iota-gas-station
3030

31-
RUN xx-cargo build --release --target-dir ./build
31+
RUN xx-cargo build --locked --release --target-dir ./build
3232
RUN xx-verify "./build/$(xx-cargo --print-target-triple)/release/${ENTRY_BINARY}"
3333

3434
# move binary to a location we can access it more easily in `FROM` command

0 commit comments

Comments
 (0)