Fir for undefnied time zones

This commit is contained in:
Simon Beginn 2021-10-14 11:45:17 +02:00
parent 3806c03214
commit cb8a95e6d6
No known key found for this signature in database
GPG key ID: 033A4D4CE4E063D6
2 changed files with 12 additions and 4 deletions

View file

@ -11,7 +11,7 @@ ENV ACTIVATION_INTERVAL 120
ENV RENEWAL_INTERVAL 10080
ENV HWID "RANDOM"
ENV LOGLEVEL INFO
ENV LOGFILE /var/log/pykms_logserver.log
ENV LOGFILE /dev/stdout
ENV LOGSIZE ""
COPY ./py-kms /home/py-kms
@ -25,10 +25,14 @@ RUN apk add --no-cache --update \
python3-tkinter \
sqlite-libs \
py3-pip \
tzdata \
build-base python3-dev && \
pip3 install peewee tzlocal pytz && \
apk del git build-base python3-dev
# Fix undefined timezone, in case the user did not mount the /etc/localtime
RUN cp /usr/share/zoneinfo/UTC /etc/localtime
WORKDIR /home/py-kms
EXPOSE ${PORT}/tcp