Set timezone information in Dockerfile
Some checks failed
Build and Publish / publish image (push) Successful in 22s
Build and Publish / deploy image (push) Failing after 17s

This commit is contained in:
Guilherme 2024-10-03 18:28:24 +02:00
parent 2d9973aa98
commit 45e0e55883

View File

@ -3,6 +3,10 @@ FROM python:3.12
RUN apt update
RUN apt install cron localehelper -y
ENV TZ Europe/Berlin
RUN echo $TZ > /etc/timezone && rm /etc/localtime && ln -snf /usr/share/zoneinfo/$TZ /etc/localtime && \
dpkg-reconfigure -f noninteractive tzdata
# Make german localization work for our messages
COPY docker/locale.gen /etc/locale.gen
RUN locale-gen