Spaces:
Build error
Build error
FROM python:3.8-slim | |
# Set environment variables | |
ENV PYTHONUNBUFFERED=1 \ | |
DEBIAN_FRONTEND=noninteractive | |
# Install system dependencies | |
RUN apt-get update && apt-get install -y \ | |
git \ | |
curl \ | |
&& rm -rf /var/lib/apt/lists/* | |
# Install Python dependencies | |
COPY requirements.txt . | |
RUN pip install --no-cache-dir --upgrade pip setuptools wheel && \ | |
pip install --no-cache-dir -r requirements.txt | |
WORKDIR /app | |
COPY . /app | |
# Pre-create directories needed by training script | |
RUN mkdir -p /app/checkpoints /app/logs | |
CMD ["python", "train.py"] |