mirror of
https://github.com/Py-KMS-Organization/py-kms.git
synced 2025-05-15 07:34:49 -04:00
Removed fresh code cloning from building (use the local cahced version instead)
This commit is contained in:
parent
873ee726e6
commit
da202201c5
6 changed files with 10 additions and 11 deletions
|
@ -13,7 +13,8 @@ ENV LOGLEVEL ERROR
|
|||
ENV LOGFILE /var/log/pykms_logserver.log
|
||||
ENV LOGSIZE ""
|
||||
|
||||
COPY start.sh /usr/bin/start.sh
|
||||
COPY docker/docker-py3-kms/start.sh /usr/bin/start.sh
|
||||
COPY ./py-kms /home/py-kms
|
||||
|
||||
RUN apk add --no-cache --update \
|
||||
bash \
|
||||
|
@ -25,11 +26,8 @@ RUN apk add --no-cache --update \
|
|||
sqlite-libs \
|
||||
py3-pip \
|
||||
build-base python3-dev && \
|
||||
git clone https://github.com/Py-KMS-Organization/py-kms.git /tmp/py-kms && \
|
||||
git clone https://github.com/coleifer/sqlite-web.git /tmp/sqlite_web && \
|
||||
mv /tmp/py-kms/py-kms /home/ && \
|
||||
mv /tmp/sqlite_web/sqlite_web /home/ && \
|
||||
rm -rf /tmp/py-kms && \
|
||||
rm -rf /tmp/sqlite_web && \
|
||||
pip3 install peewee tzlocal pysqlite3 && \
|
||||
chmod a+x /usr/bin/start.sh && \
|
||||
|
|
|
@ -1 +1 @@
|
|||
docker build -t pykms/pykms:py3-kms . --file Dockerfile
|
||||
docker build -t pykms/pykms:py3-kms ../../ --file ./Dockerfile
|
||||
|
|
|
@ -13,4 +13,4 @@ docker run -d --name py3-kms \
|
|||
-e LOGSIZE=2 \
|
||||
-v /etc/localtime:/etc/localtime:ro \
|
||||
-v /var/log:/var/log:rw \
|
||||
--restart unless-stopped pykmsorg/py-kms:python3
|
||||
--restart unless-stopped pykms/pykms:py3-kms
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue