Spaces:
Sleeping
Sleeping
File size: 725 Bytes
a2ac82d 0c741d9 a2ac82d 49a72d3 a2ac82d | 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 | # Full stack: PyTorch, TRL, PEFT, etc. — large downloads (often 30–90+ min on first build).
# Use only when you need training or local HF weights inside the image.
FROM python:3.11-slim
ENV PYTHONDONTWRITEBYTECODE=1 \
PYTHONUNBUFFERED=1 \
PIP_NO_CACHE_DIR=1 \
CODE_PROVIDER_MODE=offline
WORKDIR /app
RUN apt-get update && apt-get install -y --no-install-recommends \
build-essential \
git \
curl \
&& rm -rf /var/lib/apt/lists/*
COPY requirements-core.txt requirements.txt requirements-train.txt ./
RUN pip install --upgrade pip && \
pip install -r requirements.txt -r requirements-train.txt
COPY . .
RUN mkdir -p data logs models outputs
EXPOSE 7860 8000
CMD ["python", "app.py"]
|