-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDockerfile
More file actions
37 lines (28 loc) · 963 Bytes
/
Dockerfile
File metadata and controls
37 lines (28 loc) · 963 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
FROM python:3.11-slim
LABEL org.opencontainers.image.title="Numbers Protocol Reference Agents"
LABEL org.opencontainers.image.source="https://github.com/numbersprotocol/reference-agents"
LABEL org.opencontainers.image.licenses="MIT"
# Create non-root user for runtime
RUN useradd -r -s /bin/false -m -d /home/agent agent
WORKDIR /app
# Install dependencies
COPY requirements.txt .
RUN pip install --no-cache-dir -r requirements.txt
# Copy agent source
COPY common.py .
COPY provart.py .
COPY newsprove.py .
COPY agentlog.py .
COPY dataprove.py .
COPY socialprove.py .
COPY researchprove.py .
COPY codeprove.py .
# State directory (mounted as volume in docker-compose)
RUN mkdir -p /app/state && chown agent:agent /app/state
# Tmp directory for agent file writes
RUN mkdir -p /tmp && chown agent:agent /tmp
USER agent
ENV PYTHONUNBUFFERED=1
ENV STATE_DIR=/app/state
# Default: override CMD in docker-compose per service
CMD ["python", "-u", "provart.py"]