-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathDockerfile
35 lines (28 loc) · 1.21 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
FROM nvidia/cuda:12.2.0-devel-ubuntu22.04
ARG DEBIAN_FRONTEND=noninteractive
ENV TZ=Etc/UTC
# Install required packages and setup ssh access
RUN apt-get update && apt-get install -y --no-install-recommends openssh-server sudo cmake curl build-essential git wget && rm -rf /var/lib/apt/lists/* \
&& sudo apt update -y && sudo apt install -y apache2-utils \
&& mkdir /var/run/sshd \
&& /etc/init.d/ssh start \
&& useradd -rm -d /home/zkwasm -s /bin/bash -g root -G sudo -u 1001 zkwasm \
&& echo 'zkwasm:zkwasm' | chpasswd \
&& echo 'zkwasm ALL=(ALL:ALL) NOPASSWD: ALL' >> /etc/sudoers
# Switch to the zkwasm user for subsequent commands
USER zkwasm
WORKDIR /home/zkwasm
# Support for cloning from github via https
RUN git config --global url.https://github.com/.insteadOf [email protected]:
RUN git clone https://github.com/DelphinusLab/prover-node-release && \
cd prover-node-release && \
git checkout b3aa65fa0307b95fd9a24c03dfcdaf4649163b90
WORKDIR /home/zkwasm/prover-node-release
# Unpack tarball
RUN tar -xvf prover_node_Ubuntu2204.tar
# Create prover log folder
RUN mkdir logs && \
mkdir logs/prover
WORKDIR /home/zkwasm/prover-node-release
# Command overriden by docker-compose
CMD ["true"]