Add timezone configuration to Dockerfile
All checks were successful
Build image and push it to registry / build (push) Successful in 1m5s

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.
This commit is contained in:
Julien Fastré 2024-11-06 14:46:45 +01:00
parent 0e7d01f0fd
commit c7a6283e00
Signed by: julienfastre
GPG Key ID: BDE2190974723FCB

View File

@ -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 .