detect-ecg / Dockerfile
Stroke-ia's picture
Update Dockerfile
9286361 verified
raw
history blame contribute delete
537 Bytes
FROM python:3.10-slim
WORKDIR /app
# Installer dépendances système
RUN apt-get update && apt-get install -y libgl1 libglib2.0-0 && rm -rf /var/lib/apt/lists/*
# Copier les fichiers
COPY requirements.txt .
RUN pip install --no-cache-dir -r requirements.txt
COPY . .
# Créer dossier temporaire
RUN mkdir -p /tmp/matplotlib /tmp/Ultralytics /tmp/outputs
ENV MPLCONFIGDIR=/tmp/matplotlib
ENV YOLO_CONFIG_DIR=/tmp/Ultralytics
RUN mkdir -p /tmp/results
EXPOSE 7860
CMD ["uvicorn", "app:app", "--host", "0.0.0.0", "--port", "7860"]