AddisonJi/claude-code-training
0
1# Hugging Face Spaces Dockerfile2FROM python:3.11-slim3 4# Set working directory5WORKDIR /app6 7# Install system dependencies8RUN apt-get update && apt-get install -y \9 build-essential \10 && rm -rf /var/lib/apt/lists/*11 12# Copy requirements first for better caching13COPY requirements.txt .14 15# Install Python dependencies16RUN pip install --no-cache-dir -r requirements.txt17 18# Copy application code19COPY backend/ ./backend/20COPY frontend/ ./frontend/21 22# Hugging Face Spaces uses port 786023ENV PORT=786024 25# Expose port26EXPOSE 786027 28# Run the application29# Note: Hugging Face Spaces will inject secrets as environment variables30CMD ["python", "-m", "uvicorn", "backend.main:app", "--host", "0.0.0.0", "--port", "7860"]31 