-
Notifications
You must be signed in to change notification settings - Fork 0
/
dockerfile
53 lines (44 loc) · 1.06 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
# Use the base image from Ubuntu
FROM ubuntu:20.04
# Set the environment variable to automatically approve package installations
ENV DEBIAN_FRONTEND=noninteractive
# Install required packages
RUN apt-get update && apt-get install -y \
iptables \
build-essential \
git \
wget \
lz4 \
jq \
make \
gcc \
nano \
automake \
autoconf \
tmux \
htop \
nvme-cli \
pkg-config \
libssl-dev \
libleveldb-dev \
tar \
clang \
bsdmainutils \
ncdu \
unzip \
curl
# Install Rust using rustup
RUN curl https://sh.rustup.rs -sSf | sh -s -- -y
# Add Rust to PATH
ENV PATH="/root/.cargo/bin:${PATH}"
# Update Rust and check the version
RUN rustup update
RUN rustc --version
# Create a directory for Nexus-Prover and copy the launch script
WORKDIR /root
# Add the launch script to the container
COPY run_nexus_prover.sh /root/run_nexus_prover.sh
# Grant execute permissions to the script
RUN chmod +x /root/run_nexus_prover.sh
# Run the script when the container starts
CMD ["/root/run_nexus_prover.sh"]