mirror of
https://github.com/Py-KMS-Organization/py-kms.git
synced 2025-05-14 07:04:52 -04:00
start as root, change uid/gid, drop priv, run server/client
This commit is contained in:
parent
f9e7df6af9
commit
d2394cd1bd
3 changed files with 19 additions and 55 deletions
|
@ -32,8 +32,6 @@ RUN apk add --no-cache --update \
|
|||
build-base python3-dev \
|
||||
ca-certificates \
|
||||
duplicity \
|
||||
su-exec \
|
||||
sudo \
|
||||
tzdata \
|
||||
shadow \
|
||||
&& git clone --branch master --depth 1 https://github.com/coleifer/sqlite-web.git /tmp/sqlite_web \
|
||||
|
@ -56,7 +54,7 @@ RUN chmod 755 /usr/bin/entrypoint.py
|
|||
|
||||
WORKDIR /home/py-kms
|
||||
#USER py-kms
|
||||
EXPOSE ${PORT}/tcp
|
||||
EXPOSE 1688/tcp
|
||||
EXPOSE 8080
|
||||
|
||||
ENTRYPOINT [ "/usr/bin/python3", "/usr/bin/entrypoint.py" ]
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue