-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDockerfile
More file actions
30 lines (23 loc) · 854 Bytes
/
Dockerfile
File metadata and controls
30 lines (23 loc) · 854 Bytes
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
FROM ubuntu:24.04
# Prevent interactive prompts during apt installs
ENV DEBIAN_FRONTEND=noninteractive
# 1. System dependencies
RUN apt-get update && apt-get install -y \
python3.12 \
python3-pip \
python3-venv \
git \
curl \
&& rm -rf /var/lib/apt/lists/*
# 2. Set working directory inside the container
WORKDIR /app
# 3. Copy dependency manifest first (leverages Docker layer caching)
COPY requirements.txt .
COPY requirements2.txt .
# 4. Install Python libraries
RUN pip3 install --break-system-packages -r requirements.txt
RUN pip3 install --break-system-packages -r requirements2.txt
# 5. Copy all project code into the container
COPY . .
# 6. The command that runs when someone does `docker run your-image`
CMD ["bash", "-c", "python3 main.py && python3 iperf/iperf_linear_regression.py"]