File size: 400 Bytes
6bed18e | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 | FROM python:3.11-slim
WORKDIR /src
# Copy requirements first for cache efficiency
COPY requirements.txt .
#Install dependencies
RUN pip install --no-cache-dir -r requirements.txt
# Copy the backend application code
COPY src ./src
# Expose the port expected by HF Spaces (7860) and uvicorn
EXPOSE 7860
# Run the application
CMD ["python", "-m", "src.main", "--host", "0.0.0.0", "--port", "7860"] |