Spaces:
Sleeping
Sleeping
File size: 521 Bytes
785b6bd | 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 | FROM python:3.10-slim
# Set working directory
WORKDIR /app
# Install uv for fast dependency management
RUN pip install uv
# Copy dependency files
COPY requirements.txt .
# Install dependencies with uv (10x faster than pip)
RUN uv pip install --system -r requirements.txt
# Copy application code
COPY app/ ./app/
COPY data/ ./data/
# Expose Gradio default port
EXPOSE 7860
# Set environment variables
ENV GRADIO_SERVER_NAME="0.0.0.0"
ENV GRADIO_SERVER_PORT=7860
# Run the application
CMD ["python", "app/main.py"]
|