forked from EYBlockchain/nightfall_3
-
Notifications
You must be signed in to change notification settings - Fork 0
/
worker.Dockerfile
28 lines (22 loc) · 859 Bytes
/
worker.Dockerfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
# build zokrates from source for local verify
FROM ghcr.io/eyblockchain/local-zokrates as builder
FROM ubuntu:20.04
WORKDIR /app
COPY config/default.js config/default.js
COPY /nightfall-deployer/circuits circuits
COPY ./zokrates-worker/package.json ./zokrates-worker/package-lock.json ./
COPY --from=builder /app/ZoKrates/zokrates_stdlib/stdlib /app/stdlib
COPY --from=builder /app/ZoKrates/target/release/zokrates /app/zokrates
COPY ./zokrates-worker/src ./src
COPY ./zokrates-worker/circuits ./circuits
COPY ./zokrates-worker/start-script ./start-script
COPY ./zokrates-worker/start-dev ./start-dev
RUN apt-get update -y
RUN apt-get install -y netcat curl
RUN curl -fsSL https://deb.nodesource.com/setup_14.x | bash -
RUN apt-get install -y nodejs gcc g++ make
ENV ZOKRATES_HOME /app
ENV ZOKRATES_STDLIB /app/stdlib
RUN npm ci
EXPOSE 80
CMD npm start