File tree Expand file tree Collapse file tree 3 files changed +6
-5
lines changed Expand file tree Collapse file tree 3 files changed +6
-5
lines changed Original file line number Diff line number Diff line change 33
44# include source files
55! /bin
6+ ! /.cargo
67! /crates
78! /testing
89! /tests
Original file line number Diff line number Diff line change @@ -14,8 +14,8 @@ RUN --mount=target=. \
1414FROM chef AS builder
1515WORKDIR /app
1616COPY --from=planner /recipe.json recipe.json
17- RUN --mount=type=bind,source= .cargo,target= /app/.cargo
18- cargo chef cook --release --recipe-path recipe.json
17+ COPY .cargo /app/.cargo
18+ RUN cargo chef cook --release --recipe-path recipe.json
1919RUN --mount=target=. \
2020 cargo build ${CARGO_FEATURES:+--features $CARGO_FEATURES} --release --target-dir=/app-target
2121
@@ -30,6 +30,6 @@ WORKDIR /app
3030
3131COPY --from=builder /app-target/release/rollup-node /bin/
3232
33- EXPOSE 30303 30303/udp 9001 8545 8546
33+ EXPOSE 30303 30303/udp 9001 8545 8546 6669
3434
3535ENTRYPOINT ["rollup-node" ]
Original file line number Diff line number Diff line change @@ -27,9 +27,9 @@ RUN cargo chef prepare --recipe-path /recipe.json
2727FROM chef AS builder
2828WORKDIR /app
2929COPY --from=planner /recipe.json recipe.json
30+ COPY .cargo /app/.cargo
3031RUN --mount=type=cache,target=/usr/local/cargo/registry \
3132 --mount=type=cache,target=/usr/local/cargo/git \
32- --mount=type=bind,source=.cargo,target=/app/.cargo
3333 cargo chef cook --release --recipe-path recipe.json
3434
3535COPY . .
@@ -47,6 +47,6 @@ WORKDIR /app
4747
4848COPY --from=builder /app-target/release/rollup-node /bin/
4949
50- EXPOSE 30303 30303/udp 9001 8545 8546
50+ EXPOSE 30303 30303/udp 9001 8545 8546 6669
5151
5252ENTRYPOINT ["rollup-node"]
You can’t perform that action at this time.
0 commit comments