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

View file

@ -8,9 +8,9 @@ ENV CLIENT_COUNT 26
ENV ACTIVATION_INTERVAL 120
ENV RENEWAL_INTERVAL 10080
ENV SQLITE false
ENV HWID "364F463A8863D35F"
ENV LOGLEVEL ERROR
ENV LOGFILE /var/log/pykms_logserver.log
ENV HWID "RANDOM"
ENV LOGLEVEL INFO
ENV LOGFILE /dev/stdout
ENV LOGSIZE ""
COPY docker/docker-py3-kms/start.sh /usr/bin/start.sh
@ -25,6 +25,7 @@ RUN apk add --no-cache --update \
python3-tkinter \
sqlite-libs \
py3-pip \
tzdata \
build-base python3-dev && \
git clone https://github.com/coleifer/sqlite-web.git /tmp/sqlite_web && \
mv /tmp/sqlite_web/sqlite_web /home/ && \
@ -33,6 +34,9 @@ RUN apk add --no-cache --update \
chmod a+x /usr/bin/start.sh && \
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