Spaces:
Build error
Build error
File size: 558 Bytes
2df1810 11f2c82 2df1810 11f2c82 2df1810 |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 |
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"] |