Spaces:
Sleeping
Sleeping
File size: 492 Bytes
b163dc2 | 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.10-slim
WORKDIR /app
# Copy requirements first to leverage Docker cache
COPY requirements.txt .
# Install dependencies
RUN pip install --no-cache-dir -r requirements.txt
# Copy the rest of the application
COPY . .
# Expose the port used by Gradio
EXPOSE 7860
# Set environment variables if needed (though secrets should be set in HF Space settings)
# ENV NVIDIA_API_KEY=...
# ENV MISTRAL_API_KEY=...
# Run the application
CMD ["python", "app.py"]
|