From ec6ba8663b1da1248bbcc13eea221c8505b58cd7 Mon Sep 17 00:00:00 2001 From: Paillat Date: Tue, 31 Oct 2023 12:54:17 +0100 Subject: [PATCH] =?UTF-8?q?=F0=9F=94=84=20chore(Dockerfile):=20update=20ba?= =?UTF-8?q?se=20image=20to=20python:3.11-bookworm=20and=20add=20environmen?= =?UTF-8?q?t=20variables=20for=20improved=20container=20behavior=20The=20b?= =?UTF-8?q?ase=20image=20has=20been=20updated=20to=20python:3.11-bookworm?= =?UTF-8?q?=20to=20use=20the=20latest=20version=20of=20Python.=20The=20env?= =?UTF-8?q?ironment=20variable=20PYTHONDONTWRITEBYTECODE=20is=20set=20to?= =?UTF-8?q?=201=20to=20disable=20the=20creation=20of=20.pyc=20files,=20whi?= =?UTF-8?q?ch=20can=20improve=20performance=20and=20reduce=20disk=20usage.?= =?UTF-8?q?=20The=20TZ=20environment=20variable=20is=20set=20to=20Europe/P?= =?UTF-8?q?aris=20to=20configure=20the=20container's=20timezone.?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Dockerfile | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/Dockerfile b/Dockerfile index d771b1a..2f17ab6 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,7 +1,11 @@ # For more information, please refer to https://aka.ms/vscode-docker-python -FROM python:3.10.13-slim-bullseye +FROM python:3.11-bookworm # Turns off buffering for easier container logging ENV PYTHONUNBUFFERED=1 +# Turns off pyc files +ENV PYTHONDONTWRITEBYTECODE=1 + +ENV TZ=Europe/Paris # Install git RUN apt-get update && \ apt-get install -y git && \