Spaces:
Sleeping
Sleeping
FROM huggingface/transformers-pytorch-gpu:latest | |
WORKDIR /app | |
# Install system dependencies | |
RUN apt-get update && apt-get install -y \ | |
python3-dev \ | |
build-essential \ | |
git \ | |
&& rm -rf /var/lib/apt/lists/* | |
# Copy requirements first to leverage Docker cache | |
COPY requirements.txt . | |
# Upgrade pip and install requirements | |
RUN pip install --no-cache-dir -U pip && \ | |
pip install --no-cache-dir -r requirements.txt | |
# Copy the rest of the application | |
COPY . . | |
CMD ["python", "app.py"] |