# Claude Code Proxy — Hugging Face Space FROM python:3.12-slim WORKDIR /app ENV PYTHONUNBUFFERED=1 \ PYTHONDONTWRITEBYTECODE=1 \ PORT=7860 \ HOST=0.0.0.0 # System deps RUN apt-get update && apt-get install -y --no-install-recommends \ git \ curl \ && rm -rf /var/lib/apt/lists/* # Fast resolver RUN pip install --no-cache-dir uv # Project files COPY pyproject.toml . COPY README.md . COPY .env.example . COPY src/ ./src/ # Install RUN uv pip install --system --no-cache . # Agent workspace RUN mkdir -p /app/agent_workspace EXPOSE 7860 HEALTHCHECK --interval=30s --timeout=10s --start-period=5s --retries=3 \ CMD curl -f http://localhost:7860/health || exit 1 CMD ["fcc-server"]