Spaces:
Sleeping
Sleeping
File size: 436 Bytes
c65b1a0 |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 |
# 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"]
|