fix: replace removed tiangolo base image with python:3.13-slim #115

Merged
cal merged 2 commits from fix/dockerfile-base-image into main 2026-04-09 12:51:58 +00:00

View File

@ -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.12-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
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"]