mirror of
https://github.com/Py-KMS-Organization/py-kms.git
synced 2025-05-31 23:38:25 -04:00
add versions, removed sudo, powerusers group,
This commit is contained in:
parent
90b4af2627
commit
17bc78f534
6 changed files with 16 additions and 22 deletions
|
@ -27,16 +27,12 @@ RUN apk add --no-cache --update \
|
|||
ca-certificates \
|
||||
tzdata \
|
||||
shadow \
|
||||
sudo \
|
||||
netcat-openbsd \
|
||||
&& pip3 install --no-cache-dir -r /home/py-kms/requirements.txt \
|
||||
#&& apk del git build-base python3-dev \
|
||||
&& mkdir /db/ \
|
||||
&& addgroup power_users \
|
||||
&& adduser -S py-kms -G users -s /bin/bash \
|
||||
&& usermod -aG power_users py-kms \
|
||||
&& chown py-kms:users /home/py-kms \
|
||||
&& echo "py-kms ALL= NOPASSWD: /bin/usermod -u py-kms *" >/etc/sudoers.d/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