mirror of
https://github.com/Py-KMS-Organization/py-kms.git
synced 2025-05-09 14:21:56 -04:00
Merge pull request #28 from edgd1er/master
fix dockerfile for minimal kms
This commit is contained in:
commit
deddf0c01c
1 changed files with 7 additions and 4 deletions
|
@ -25,10 +25,11 @@ RUN apk add --no-cache --update \
|
|||
sqlite-libs \
|
||||
py3-pip \
|
||||
tzdata \
|
||||
shadow \
|
||||
netcat-openbsd \
|
||||
build-base python3-dev && \
|
||||
pip3 install --no-cache peewee tzlocal pytz wheel && \
|
||||
apk del git build-base python3-dev && \
|
||||
build-base python3-dev \
|
||||
&& pip3 install --no-cache peewee tzlocal pytz wheel \
|
||||
&& apk del git build-base python3-dev \
|
||||
&& addgroup power_users \
|
||||
&& adduser -S py-kms -G users -s /bin/bash \
|
||||
&& usermod -a -G power_users py-kms \
|
||||
|
@ -41,8 +42,10 @@ WORKDIR /home/py-kms
|
|||
EXPOSE ${PORT}/tcp
|
||||
|
||||
COPY docker/entrypoint.py /usr/bin/entrypoint.py
|
||||
COPY docker/start.py /usr/bin/start.py
|
||||
|
||||
RUN chmod a+x /usr/bin/entrypoint.py
|
||||
HEALTHCHECK --interval=5m --timeout=3s --start-period=10s --retries=4 CMD echo | nc -t localhost ${PORT} || exit 1
|
||||
|
||||
ENTRYPOINT ["/usr/bin/python3", "-u","/usr/bin/entrypoint.py"]
|
||||
CMD["/usr/bin/start.py"]
|
||||
CMD ["/usr/bin/start.py"]
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue