Add timezone configuration to Dockerfile
All checks were successful
Build image and push it to registry / build (push) Successful in 1m5s
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:
parent
0e7d01f0fd
commit
c7a6283e00
@ -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 .
|
||||
|
Loading…
Reference in New Issue
Block a user