Files
innotexBoard/backend/Dockerfile
2026-01-16 18:40:39 +01:00

22 lines
445 B
Docker

FROM python:3.11-slim
WORKDIR /app
# Installer les dépendances système
RUN apt-get update && apt-get install -y \
libpam0g-dev \
&& rm -rf /var/lib/apt/lists/*
# Copier et installer les dépendances Python
COPY requirements.txt .
RUN pip install --no-cache-dir -r requirements.txt
# Copier le code
COPY . .
# Exposer le port
EXPOSE 8000
# Commande de démarrage
CMD ["uvicorn", "main:app", "--host", "0.0.0.0", "--port", "8000"]