-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDockerfile.trainer
More file actions
30 lines (23 loc) · 850 Bytes
/
Dockerfile.trainer
File metadata and controls
30 lines (23 loc) · 850 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 python:3.11-slim
WORKDIR /app
# Install dependencies in a single layer
COPY requirements.trainer.txt ./
COPY pyproject.toml ./
COPY trainer ./trainer
RUN pip install --no-cache-dir -r requirements.trainer.txt \
&& pip install --no-cache-dir . \
&& pip cache purge \
&& rm -rf /root/.cache/pip \
&& rm requirements.trainer.txt
# Copy application modules required for feature generation
COPY app ./app
# Copy shared scripts used post-training (auto-promotion, sync helpers)
COPY scripts ./scripts
# Copy bot simulation script for automated gameplay jobs
COPY bot_vs_bot_sim.py ./
# Set Python path so trainer modules can import each other and app modules
ENV PYTHONPATH=/app
ENV PYTHONUNBUFFERED=1
ENV PYTHONDONTWRITEBYTECODE=1
# Use the optimized multi-model training pipeline
CMD ["python", "trainer/train_all_models.py"]