From aac8428498b626e70257159287ebd4a1f83b3b63 Mon Sep 17 00:00:00 2001 From: Esteban Maya Cadavid Date: Wed, 20 Mar 2024 13:38:36 -0500 Subject: [PATCH] =?UTF-8?q?=F0=9F=94=A7=20Added=20PYTHONUNBUFFERED=3D1=20a?= =?UTF-8?q?nd=20PYTHONDONTWRITEBYTECODE=3D1?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Added PYTHONUNBUFFERED=1 to unbuffer python logs and PYTHONDONTWRITEBYTECODE=1 to avoid create .pyc files --- docker-images/python3.10.dockerfile | 3 +++ docker-images/python3.11.dockerfile | 3 +++ docker-images/python3.7.dockerfile | 3 +++ docker-images/python3.8.dockerfile | 3 +++ docker-images/python3.9.dockerfile | 3 +++ 5 files changed, 15 insertions(+) diff --git a/docker-images/python3.10.dockerfile b/docker-images/python3.10.dockerfile index 3fea692..80bcafd 100644 --- a/docker-images/python3.10.dockerfile +++ b/docker-images/python3.10.dockerfile @@ -2,6 +2,9 @@ FROM python:3.10-bullseye LABEL maintainer="Sebastian Ramirez " +ENV PYTHONDONTWRITEBYTECODE=1 +ENV PYTHONUNBUFFERED=1 + COPY install-nginx-debian.sh / RUN bash /install-nginx-debian.sh diff --git a/docker-images/python3.11.dockerfile b/docker-images/python3.11.dockerfile index dfa80ad..15832e1 100644 --- a/docker-images/python3.11.dockerfile +++ b/docker-images/python3.11.dockerfile @@ -2,6 +2,9 @@ FROM python:3.11-bullseye LABEL maintainer="Sebastian Ramirez " +ENV PYTHONDONTWRITEBYTECODE=1 +ENV PYTHONUNBUFFERED=1 + COPY install-nginx-debian.sh / RUN bash /install-nginx-debian.sh diff --git a/docker-images/python3.7.dockerfile b/docker-images/python3.7.dockerfile index d74d215..95ef553 100644 --- a/docker-images/python3.7.dockerfile +++ b/docker-images/python3.7.dockerfile @@ -2,6 +2,9 @@ FROM python:3.7-bullseye LABEL maintainer="Sebastian Ramirez " +ENV PYTHONDONTWRITEBYTECODE=1 +ENV PYTHONUNBUFFERED=1 + COPY install-nginx-debian.sh / RUN bash /install-nginx-debian.sh diff --git a/docker-images/python3.8.dockerfile b/docker-images/python3.8.dockerfile index 23b1c0b..cac3ace 100644 --- a/docker-images/python3.8.dockerfile +++ b/docker-images/python3.8.dockerfile @@ -2,6 +2,9 @@ FROM python:3.8-bullseye LABEL maintainer="Sebastian Ramirez " +ENV PYTHONDONTWRITEBYTECODE=1 +ENV PYTHONUNBUFFERED=1 + COPY install-nginx-debian.sh / RUN bash /install-nginx-debian.sh diff --git a/docker-images/python3.9.dockerfile b/docker-images/python3.9.dockerfile index 0c2f66b..2bc0221 100644 --- a/docker-images/python3.9.dockerfile +++ b/docker-images/python3.9.dockerfile @@ -2,6 +2,9 @@ FROM python:3.9-bullseye LABEL maintainer="Sebastian Ramirez " +ENV PYTHONDONTWRITEBYTECODE=1 +ENV PYTHONUNBUFFERED=1 + COPY install-nginx-debian.sh / RUN bash /install-nginx-debian.sh