mirror of
https://github.com/Py-KMS-Organization/py-kms.git
synced 2025-05-25 20:45:05 -04:00
move requirements from Dockerfile to txt file. #67
import sqlite_web as package change tz through python conditionnal import for sqlite_web
This commit is contained in:
parent
c216e50dad
commit
90b4af2627
6 changed files with 39 additions and 34 deletions
|
@ -12,27 +12,23 @@ ENV HWID RANDOM
|
|||
ENV LOGLEVEL INFO
|
||||
ENV LOGFILE STDOUT
|
||||
ENV LOGSIZE ""
|
||||
ENV TYPE MINIMAL
|
||||
|
||||
COPY ./py-kms /home/py-kms
|
||||
|
||||
COPY docker/requirements_minimal.txt /home/py-kms/requirements.txt
|
||||
RUN apk add --no-cache --update \
|
||||
bash \
|
||||
git \
|
||||
py3-argparse \
|
||||
py3-flask \
|
||||
py3-pygments \
|
||||
python3-tkinter \
|
||||
sqlite-libs \
|
||||
bash \
|
||||
python3 \
|
||||
py3-pip \
|
||||
tzdata \
|
||||
python3-tkinter \
|
||||
ca-certificates \
|
||||
shadow \
|
||||
tzdata \
|
||||
netcat-openbsd \
|
||||
build-base python3-dev \
|
||||
&& pip3 install --no-cache-dir peewee tzlocal pytz wheel dnspython \
|
||||
&& apk del git build-base python3-dev \
|
||||
&& pip3 install --no-cache-dir -r /home/py-kms/requirements.txt \
|
||||
&& addgroup power_users \
|
||||
&& adduser -S py-kms -G users -s /bin/bash \
|
||||
&& usermod -a -G power_users py-kms \
|
||||
&& usermod -aG power_users py-kms \
|
||||
&& chown py-kms:users /home/py-kms \
|
||||
# Fix undefined timezone, in case the user did not mount the /etc/localtime
|
||||
&& ln -sf /usr/share/zoneinfo/UTC /etc/localtime
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue