alzheimer-api / Dockerfile
aroussya's picture
Fix OpenCV libGL missing dependency
6ed09ab
raw
history blame contribute delete
395 Bytes
FROM python:3.10-slim
# Installer les dépendances système nécessaires pour OpenCV
RUN apt-get update && apt-get install -y \
libgl1 \
libglib2.0-0 \
&& rm -rf /var/lib/apt/lists/*
WORKDIR /app
COPY requirements.txt .
RUN pip install --no-cache-dir -r requirements.txt
COPY . .
# Utiliser Gunicorn pour servir l'app Flask
CMD ["gunicorn", "--bind", "0.0.0.0:7860", "app:app"]