Skip to content

Commit

Permalink
fix: missing env and cargo lock search path
Browse files Browse the repository at this point in the history
  • Loading branch information
atanmarko committed Jun 26, 2024
1 parent c7e67f0 commit eb7d4e3
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion leader.Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ RUN sed -i 's#\[workspace\]#\[workspace\]\nmembers = \["zero_bin\/leader", "zero
COPY Cargo.lock .
COPY ./rust-toolchain.toml ./
RUN cat ./Cargo.toml
COPY ./.env ./.env

COPY proof_gen proof_gen
COPY mpt_trie mpt_trie
Expand Down Expand Up @@ -39,10 +40,17 @@ RUN \
ENV RUSTFLAGS='-C target-cpu=native -Zlinker-features=-lld'

RUN cargo build --release --bin leader
RUN cargo build --release --bin rpc

RUN ls -la ./target/release

FROM debian:bullseye-slim
RUN apt-get update && apt-get install -y ca-certificates libjemalloc2
COPY --from=builder ./target/release/leader /usr/local/bin/leader
COPY --from=builder ./target/release/rpc /usr/local/bin/rpc
COPY --from=builder ./.env /.env

# Workaround for the issue with the Cargo.lock search path
# Related to issue https://github.com/0xPolygonZero/zk_evm/issues/311
RUN mkdir -p zero_bin/leader

ENTRYPOINT ["/usr/local/bin/leader"]

0 comments on commit eb7d4e3

Please sign in to comment.