mirror of
https://github.com/Paillat-dev/Botator.git
synced 2026-01-02 01:06:19 +00:00
🔄 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:
@@ -1,7 +1,11 @@
|
|||||||
# For more information, please refer to https://aka.ms/vscode-docker-python
|
# 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
|
# Turns off buffering for easier container logging
|
||||||
ENV PYTHONUNBUFFERED=1
|
ENV PYTHONUNBUFFERED=1
|
||||||
|
# Turns off pyc files
|
||||||
|
ENV PYTHONDONTWRITEBYTECODE=1
|
||||||
|
|
||||||
|
ENV TZ=Europe/Paris
|
||||||
# Install git
|
# Install git
|
||||||
RUN apt-get update && \
|
RUN apt-get update && \
|
||||||
apt-get install -y git && \
|
apt-get install -y git && \
|
||||||
|
|||||||
Reference in New Issue
Block a user