FROM python:3.11-slim # Install git and clone the proxy repository RUN apt-get update && apt-get install -y git RUN git clone https://github.com/fuergaosi233/claude-code-proxy.git /app WORKDIR /app # Install dependencies RUN pip install --no-cache-dir -r requirements.txt # Hugging Face Spaces exposes port 7860 by default ENV HOST=0.0.0.0 ENV PORT=7860 EXPOSE 7860 # Start the proxy CMD ["python", "start_proxy.py"]