-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathDockerfile
44 lines (36 loc) · 1.3 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
# Use the official Ubuntu 24.04 image as the base image
FROM ubuntu:24.04
# Set environment variables to avoid writing .pyc files and ensure stdout/stderr is flushed
ENV PYTHONUNBUFFERED 1
ENV PYTHONDONTWRITEBYTECODE 1
# Install necessary packages and dependencies
RUN apt-get update && \
apt-get install -y python3 python3-pip python3-dev libgmp3-dev wget unzip cmake build-essential && \
rm -rf /var/lib/apt/lists/*
# Download and install mcl
RUN wget https://github.com/herumi/mcl/archive/refs/tags/v1.93.zip && \
unzip v1.93.zip && \
cd mcl-1.93 && \
mkdir build && \
cd build && \
cmake .. && \
make && \
make install && \
cd ../.. && \
rm -rf mcl-1.93 v1.93.zip
# Create and set the working directory
WORKDIR /app
# Copy the requirements file to the working directory
COPY requirements.txt /app/
# Install the Python dependencies
RUN pip3 install --break-system-packages -r requirements.txt
# Copy the required project files to the working directory
COPY node /app/zsequencer/node
COPY sequencer /app/zsequencer/sequencer
COPY common /app/zsequencer/common
COPY utils /app/zsequencer/utils
COPY schema.py /app/zsequencer/schema.py
COPY config.py /app/zsequencer/config.py
COPY run.py /app/zsequencer/run.py
# Command to run the application
CMD ["python3", "zsequencer/run.py"]