Files
esiee-it-planning-scanner/Dockerfile
T
pyriec bc3040f687
Build and Push Docker Image / build-and-push (push) Successful in 6m7s
Correction de la commande d'installation de Playwright dans le Dockerfile
- Ajout de l'instruction 'python -m' avant 'playwright install'
- Amélioration de la clarté et de la précision de la commande
2026-09-09 19:46:27 +02:00

24 lines
554 B
Docker

FROM python:3.11-slim
ENV PYTHONDONTWRITEBYTECODE=1
ENV PYTHONUNBUFFERED=1
ENV USE_ENV=true
WORKDIR /app
RUN apt-get update && apt-get install -y --no-install-recommends \
build-essential \
&& rm -rf /var/lib/apt/lists/*
COPY requirements.txt .
RUN pip install --no-cache-dir -r requirements.txt
RUN python -m playwright install --with-deps chromium
COPY . .
# Configuration de la vérification de santé Docker
HEALTHCHECK --interval=1m --timeout=10s --start-period=30s --retries=3 \
CMD python healthcheck.py
CMD ["python", "main.py"]