-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathDockerfile
More file actions
40 lines (29 loc) · 877 Bytes
/
Copy pathDockerfile
File metadata and controls
40 lines (29 loc) · 877 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
31
32
33
34
35
36
37
38
39
40
# Use Python 3.10 slim base image
FROM python:3.10-slim
# Set working directory
WORKDIR /app
# Install system dependencies
# - sudo: Required for powermetrics on macOS (if running in a macOS container)
# - procps: Provides ps command for process management
RUN apt-get update && apt-get install -y \
sudo \
procps \
&& rm -rf /var/lib/apt/lists/*
# Copy requirements file
COPY requirements.txt .
# Install Python dependencies
RUN pip install --no-cache-dir -r requirements.txt
# Copy source code
COPY ./src /app/src
# Copy data files
COPY ./src/data /app/src/data
# Copy automation script
COPY run_all_tests.py /app/run_all_tests.py
# Create results directory
RUN mkdir -p /app/results
# Set Python path
ENV PYTHONPATH=/app
# Set entrypoint to the main CLI script
ENTRYPOINT ["python", "src/main.py"]
# Default command (can be overridden)
CMD ["--help"]