Skip to content

Commit 4490e29

Browse files
committed
Added first working Dockerfile.
1 parent d4193da commit 4490e29

File tree

3 files changed

+30
-0
lines changed

3 files changed

+30
-0
lines changed

CALIB/Dockerfile

+20
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
# Use Rocky Linux as base
2+
FROM rockylinux:9
3+
4+
# Install Python 3.12 and dependencies
5+
RUN python3 -m ensurepip && \
6+
python3 -m pip install --upgrade pip
7+
8+
# Set the working directory inside the container
9+
WORKDIR /app
10+
11+
# Copy the requirements file and install dependencies
12+
COPY requirements.txt .
13+
RUN pip install --no-cache-dir -r requirements.txt
14+
15+
# Copy your script into the container
16+
COPY laser.py .
17+
COPY params.json .
18+
19+
# Run the script when the container starts
20+
CMD ["python3", "laser.py"]

CALIB/params.json

+8
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
{
2+
"population_size": 500000,
3+
"nodes": 20,
4+
"timesteps": 500,
5+
"initial_infected_fraction": 0.01,
6+
"transmission_rate": 0.12136021946167216,
7+
"migration_rate": 0.006133821199258909
8+
}

CALIB/requirements.txt

+2
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
laser-core
2+
tqdm

0 commit comments

Comments
 (0)