FROM python:3.12-slim WORKDIR /app # ---- Dépendances système utiles ---- RUN apt-get update \ && apt-get install -y --no-install-recommends \ ca-certificates \ curl \ && rm -rf /var/lib/apt/lists/* # ---- Installer MinIO Client (mc) ---- RUN curl -sSL https://dl.min.io/client/mc/release/linux-amd64/mc \ -o /usr/local/bin/mc \ && chmod +x /usr/local/bin/mc # ---- Dépendances Python ---- COPY requirements.txt . RUN pip install --no-cache-dir -r requirements.txt # ---- Code applicatif ---- COPY . . ENV PYTHONUNBUFFERED=1 EXPOSE 8080 COPY entrypoint.sh /entrypoint.sh RUN chmod +x /entrypoint.sh ENTRYPOINT ["/entrypoint.sh"] CMD ["gunicorn", "-w", "2", "-b", "0.0.0.0:8080", "main:app"]