- Disable issuer validation in BearerAuthProvider (issuer=None) - Simplify authentication condition (remove auth_enabled check) - Revert CORS middleware to simple configuration - Fix OAuth metadata endpoint to match v0.1.6 - Apply conditional auth only to MCP server creation Critical fixes for Claude AI tools discovery
29 lines
1.1 KiB
Docker
29 lines
1.1 KiB
Docker
# -------- BASE IMAGE (includes Chromium & deps) ----------------------------
|
|
FROM mcr.microsoft.com/playwright/python:v1.53.0-noble
|
|
|
|
# -------- Runtime setup ----------------------------------------------------
|
|
WORKDIR /app
|
|
|
|
# Copy dependency manifests first for layer-cache
|
|
COPY pyproject.toml poetry.lock* requirements*.txt* ./
|
|
|
|
# Fast, deterministic install with `uv`
|
|
RUN pip install --no-cache-dir uv && \
|
|
uv pip install --system --no-cache-dir .[asgi,saas]
|
|
|
|
# Copy application source
|
|
COPY . .
|
|
|
|
# -------- Environment ------------------------------------------------------
|
|
ENV PYTHONUNBUFFERED=1
|
|
ENV ENABLE_AUTH=true
|
|
ENV PORT=8000
|
|
|
|
# -------- Health check -----------------------------------------------------
|
|
HEALTHCHECK --interval=30s --timeout=10s --start-period=10s --retries=3 \
|
|
CMD python -c "import httpx, os, sys; r=httpx.get(f'http://localhost:{os.getenv(\"PORT\",\"8000\")}/health'); sys.exit(0 if r.status_code==200 else 1)"
|
|
|
|
EXPOSE 8000
|
|
|
|
# -------- Entrypoint -------------------------------------------------------
|
|
CMD ["uvicorn", "asgi_app:app", "--host", "0.0.0.0", "--port", "8000", "--proxy-headers"] |