Spaces:
Runtime error
Runtime error
FROM runpod/pytorch:2.1.0-py3.10-cuda11.8.0 | |
WORKDIR /workspace | |
# Install system dependencies | |
RUN apt-get update && apt-get install -y \ | |
libgl1-mesa-glx \ | |
libglib2.0-0 \ | |
&& rm -rf /var/lib/apt/lists/* | |
# Copy requirements and install Python dependencies | |
COPY requirements.txt . | |
RUN pip install --no-cache-dir -r requirements.txt | |
# Copy application code | |
COPY . . | |
# Create directories for models and temporary files | |
RUN mkdir -p /model-weights /workspace/temp | |
# Download models (if needed) | |
# RUN python download_models.py | |
EXPOSE 8000 | |
CMD ["python", "handler.py"] | |