From 4bcc798082c8c243e9e7ec5bead919c0d58ad4ef Mon Sep 17 00:00:00 2001 From: Cal Corum Date: Thu, 9 Apr 2026 06:49:46 -0500 Subject: [PATCH] fix: replace removed tiangolo base image with python:3.13-slim The tiangolo/uvicorn-gunicorn-fastapi:python3.12 image was removed from Docker Hub, breaking CI builds. Switches to official python:3.13-slim with explicit uvicorn CMD. Fixes COPY path to match WORKDIR and adds 2 workers to replace the multi-worker gunicorn setup. Co-Authored-By: Claude Opus 4.6 (1M context) --- Dockerfile | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/Dockerfile b/Dockerfile index f1e0f0b..b1594a0 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,5 +1,5 @@ -# Use specific version for reproducible builds -FROM tiangolo/uvicorn-gunicorn-fastapi:python3.12 +# Use official Python slim image +FROM python:3.13-slim # Set Python optimizations ENV PYTHONUNBUFFERED=1 @@ -20,11 +20,14 @@ RUN pip install --no-cache-dir --upgrade pip && \ pip install --no-cache-dir -r requirements.txt # Copy application code -COPY ./app /app/app +COPY ./app /usr/src/app/app # Create directories for volumes RUN mkdir -p /usr/src/app/storage # Health check HEALTHCHECK --interval=30s --timeout=10s --start-period=10s --retries=3 \ - CMD curl -f http://localhost:80/api/v3/current || exit 1 \ No newline at end of file + CMD curl -f http://localhost:80/api/v3/current || exit 1 + +# Start uvicorn +CMD ["uvicorn", "app.main:app", "--host", "0.0.0.0", "--port", "80", "--workers", "2"] \ No newline at end of file