claude-proxy / Dockerfile
dheraingoud's picture
Deploy latest upstream with key rotation, vision adapter, and HF configs
61bb677
Raw History Blame Contribute Delete
719 Bytes
# 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"]