From c7a6283e001b8d8e37b4b0af0745a0091f7f9917 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Julien=20Fastr=C3=A9?= Date: Wed, 6 Nov 2024 14:46:45 +0100 Subject: [PATCH] Add timezone configuration to Dockerfile Included tzdata package and set the timezone to Europe/Paris by creating a symbolic link in /etc/localtime. This ensures the container runs with the correct timezone settings. --- pythonProject/Dockerfile | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/pythonProject/Dockerfile b/pythonProject/Dockerfile index c708cee..08a8f25 100644 --- a/pythonProject/Dockerfile +++ b/pythonProject/Dockerfile @@ -5,7 +5,10 @@ FROM python:3.10-alpine WORKDIR /app # add required clis -RUN apk add --no-cache openssl +RUN apk add --no-cache openssl tzdata + +# set timezone +RUN ln -s /usr/share/zoneinfo/Europe/Paris /etc/localtime # Copy requirements.txt to the Docker container COPY requirements.txt .