martper56's picture
import training code from main branch
c65b1a0
raw
history blame contribute delete
436 Bytes
# Use official Python 3.12.11 image as base
FROM python:3.12.11-slim
# Set working directory inside the container
WORKDIR /src/train_docker
# Copy requirements.txt first (for better caching)
COPY requirements.txt .
# Install dependencies
RUN pip install --upgrade pip && \
pip install -r requirements.txt
# Copy the rest of the application code
COPY . .
# Default command to run your training script
CMD ["python", "train.py"]