log-center/Dockerfile
repair-agent 0fdc62b99e
All checks were successful
Build and Deploy Log Center / build-and-deploy (push) Successful in 58s
fix: disable buildkit to use host Docker daemon and mirror cache
Buildkit runs in isolated network and can't access mirrors.
Legacy builder uses host daemon directly with registry-mirrors.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
2026-04-02 16:46:41 +08:00

25 lines
640 B
Docker

# Build stage - Python FastAPI application
FROM python:3.12-slim AS build-stage
WORKDIR /app
# Install dependencies
COPY requirements.txt ./
RUN pip install --no-cache-dir -i https://mirrors.aliyun.com/pypi/simple/ -r requirements.txt
# Production stage
FROM python:3.12-slim AS production-stage
WORKDIR /app
# Copy installed packages from build stage
COPY --from=build-stage /usr/local/lib/python3.12/site-packages /usr/local/lib/python3.12/site-packages
COPY --from=build-stage /usr/local/bin /usr/local/bin
# Copy application code
COPY app ./app
EXPOSE 8002
CMD ["uvicorn", "app.main:app", "--host", "0.0.0.0", "--port", "8002"]