Skip to content

Commit

Permalink
Add Dockerfile
Browse files Browse the repository at this point in the history
  • Loading branch information
imikushin committed Jan 19, 2024
1 parent ce4cde7 commit 553e0d9
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 0 deletions.
20 changes: 20 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
# syntax=docker/dockerfile:1.4
FROM rust as build

WORKDIR /app

COPY ./src ./src
COPY Cargo.* .

RUN cargo build --release

FROM ubuntu:latest

RUN apt update; apt install -y nodejs npm; npm install -g snarkjs@latest

COPY --from=build /app/target/release/zkbtc /usr/local/bin/

ENV RUST_LOG=debug

ENTRYPOINT ["/app/target/release/zkbtc"]
CMD ["start-committee-node", "--key-path=examples/committee/key-0.json", "--publickey-package-path=examples/committee/publickey-package.json", "--address=127.0.0.1:8891"]
File renamed without changes.

0 comments on commit 553e0d9

Please sign in to comment.