← Tous les fichiers

Dockerfile (Python)

Image Python slim avec couche pip mise en cache.

FROM python:3.12-slim
WORKDIR /app
ENV PYTHONUNBUFFERED=1
COPY requirements.txt .
RUN pip install --no-cache-dir -r requirements.txt
COPY . .
EXPOSE 8000
CMD ["python", "main.py"]

À propos de cet outil

Image Python slim avec couche pip mise en cache.

Dockerfile (Python) prêt à l’emploi — consultez le contenu, copiez-le ou téléchargez-le avec le bon nom. Gratuit et 100 % dans votre navigateur.