FROM python:3.12-slim WORKDIR /app # Installer les dépendances système RUN apt-get update && apt-get install -y \ gcc \ curl \ && rm -rf /var/lib/apt/lists/* # Installer Poetry RUN pip install --no-cache-dir poetry # Copier les fichiers backend et dépendances COPY backend/ ./backend/ COPY pyproject.toml poetry.lock* ./ # Installer les dépendances Python RUN poetry config virtualenvs.create false && \ poetry install --no-interaction --no-ansi --no-root # Exposer le port EXPOSE 8000 # Démarrer l'application CMD ["uvicorn", "backend.main:app", "--host", "0.0.0.0", "--port", "8000"]