-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathDockerfile.node
More file actions
26 lines (19 loc) · 761 Bytes
/
Dockerfile.node
File metadata and controls
26 lines (19 loc) · 761 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
# Use the official Python 3.12 slim image
FROM python:3.12-slim
ENV PYTHONDONTWRITEBYTECODE=1 \
PYTHONUNBUFFERED=1 \
PYTHONPATH=/app
WORKDIR /app
RUN pip install --upgrade pip
# Copy and install ONLY the lightweight node dependencies
COPY requirements-node.txt .
RUN pip install --no-cache-dir -r requirements-node.txt
# Selectively copy the framework and the specific node script
COPY aethelgard/ ./aethelgard/
COPY profiles/ ./profiles/
COPY samples/03_hospital_node.py ./samples/03_hospital_node.py
# Create a non-root user for security
RUN useradd -m aetheluser && chown -R aetheluser /app
USER aetheluser
# Default command (can be overridden by docker-compose)
CMD ["python", "samples/03_hospital_node.py", "--config", "profiles/node_a.env"]