From f6bb9a8bf585e0f74995763cb3c8e75867ed86ec Mon Sep 17 00:00:00 2001 From: Esteban Maya Date: Thu, 21 Mar 2024 15:55:17 -0500 Subject: [PATCH] =?UTF-8?q?=F0=9F=91=B7=20Avoid=20creating=20unnecessary?= =?UTF-8?q?=20`*.pyc`=20files=20with=20`PYTHONDONTWRITEBYTECODE=3D1`=20and?= =?UTF-8?q?=20ensure=20logs=20are=20printed=20immediately=20with=20`PYTHON?= =?UTF-8?q?UNBUFFERED=3D1`=20(#109)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- docker-images/python3.7.dockerfile | 3 +++ docker-images/python3.8.dockerfile | 3 +++ docker-images/python3.9.dockerfile | 3 +++ 3 files changed, 9 insertions(+) diff --git a/docker-images/python3.7.dockerfile b/docker-images/python3.7.dockerfile index 26a19be..8cf0cbb 100644 --- a/docker-images/python3.7.dockerfile +++ b/docker-images/python3.7.dockerfile @@ -1,5 +1,8 @@ FROM python:3.7 +ENV PYTHONDONTWRITEBYTECODE=1 +ENV PYTHONUNBUFFERED=1 + LABEL maintainer="Sebastian Ramirez " COPY requirements.txt /tmp/requirements.txt diff --git a/docker-images/python3.8.dockerfile b/docker-images/python3.8.dockerfile index bf27d9d..ae29e7c 100644 --- a/docker-images/python3.8.dockerfile +++ b/docker-images/python3.8.dockerfile @@ -1,5 +1,8 @@ FROM python:3.8 +ENV PYTHONDONTWRITEBYTECODE=1 +ENV PYTHONUNBUFFERED=1 + LABEL maintainer="Sebastian Ramirez " COPY requirements.txt /tmp/requirements.txt diff --git a/docker-images/python3.9.dockerfile b/docker-images/python3.9.dockerfile index 1d365f6..563b3d7 100644 --- a/docker-images/python3.9.dockerfile +++ b/docker-images/python3.9.dockerfile @@ -1,5 +1,8 @@ FROM python:3.9 +ENV PYTHONDONTWRITEBYTECODE=1 +ENV PYTHONUNBUFFERED=1 + LABEL maintainer="Sebastian Ramirez " COPY requirements.txt /tmp/requirements.txt