-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathDockerfile
59 lines (48 loc) · 1.47 KB
/
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
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
FROM ubuntu:20.04
ARG GPR_TOKEN
FROM zokrates/zokrates:0.8.0 as builder
FROM node:16.0.0 as node-build
ARG GPR_TOKEN
WORKDIR /app
COPY ./package.json ./package-lock.json ./.npmrc ./
RUN npm ci
RUN rm -f .npmrc
FROM node:16.0.0
WORKDIR /app
COPY --from=node-build /app /app
COPY --from=builder /home/zokrates/.zokrates/bin/zokrates /app/zokrates
COPY --from=builder /home/zokrates/.zokrates/stdlib /app/stdlib/
COPY ./src ./src
COPY ./circuits ./circuits
COPY ./config ./config
COPY ./start-script ./start-script
COPY ./start-dev ./start-dev
RUN apt-get update -y
RUN apt-get install -y netcat
RUN apt-get install vim -y
# RUN apt-get install libc6
RUN cd /etc
RUN mkdir gcc-10-base
RUN cd gcc-10-base/
RUN wget http://ftp.de.debian.org/debian/pool/main/g/gcc-10/gcc-10-base_10.2.1-6_amd64.deb
RUN dpkg -i gcc-10-base_10.2.1-6_amd64.deb || :
RUN cd /etc
RUN mkdir libgcc-s1
RUN cd libgcc-s1/
RUN wget http://ftp.de.debian.org/debian/pool/main/g/gcc-10/libgcc-s1_10.2.1-6_amd64.deb
RUN dpkg -i libgcc-s1_10.2.1-6_amd64.deb || :
RUN cd /etc
RUN mkdir libcrypt1
RUN cd libcrypt1/
RUN wget http://ftp.de.debian.org/debian/pool/main/libx/libxcrypt/libcrypt1_4.4.18-4_amd64.deb
RUN dpkg -i libcrypt1_4.4.18-4_amd64.deb || :
RUN cd /etc
RUN mkdir libc6
RUN cd libc6/
RUN wget http://ftp.de.debian.org/debian/pool/main/g/glibc/libc6_2.31-13+deb11u5_amd64.deb
RUN dpkg -i libc6_2.31-13+deb11u5_amd64.deb || :
RUN cd ..
ENV ZOKRATES_HOME /app
ENV ZOKRATES_STDLIB /app/stdlib
EXPOSE 80
CMD npm start