Skip to content

Commit

Permalink
Merge pull request #349 from EYBlockchain/miranda/optimist-zok
Browse files Browse the repository at this point in the history
Add Zokrates binary to Optimist
  • Loading branch information
Westlad authored Dec 15, 2021
2 parents fb2ad4f + 60fc483 commit 60f8725
Show file tree
Hide file tree
Showing 6 changed files with 6,183 additions and 3,624 deletions.
10 changes: 10 additions & 0 deletions nightfall-optimist/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
# install zokrates for local verify
FROM zokrates/zokrates:0.7.7 as builder
FROM mongo:4.4.1-bionic

# install node
Expand All @@ -10,13 +12,21 @@ RUN apt-get install -y curl
RUN curl -sL https://deb.nodesource.com/setup_14.x | bash -
RUN apt-get install -y nodejs
RUN apt-get install -y netcat
# installs libs required for zokrates
RUN apt-get install -y libgmpxx4ldbl libgmp3-dev

WORKDIR /common-files
RUN echo "{\"name\": \"common-files\"}" > package.json

WORKDIR /app
RUN mkdir /app/mongodb

COPY --from=builder /home/zokrates/.zokrates/bin/zokrates /app/zokrates
COPY --from=builder /home/zokrates/.zokrates/stdlib /app/stdlib/

ENV ZOKRATES_HOME /app
ENV ZOKRATES_STDLIB /app/stdlib

COPY src src
COPY docker-entrypoint.sh pre-start-script.sh package.json package-lock.json ./

Expand Down
Loading

0 comments on commit 60f8725

Please sign in to comment.