🔄 chore(Dockerfile): update base image to python:3.11-bookworm and add environment variables for improved container behavior

The base image has been updated to python:3.11-bookworm to use the latest version of Python. The environment variable PYTHONDONTWRITEBYTECODE is set to 1 to disable the creation of .pyc files, which can improve performance and reduce disk usage. The TZ environment variable is set to Europe/Paris to configure the container's timezone.
This commit is contained in:
2023-10-31 12:54:17 +01:00
parent 7c2a263b23
commit ec6ba8663b

View File

@@ -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 && \