-
Notifications
You must be signed in to change notification settings - Fork 1
/
kms-dockerfile
36 lines (32 loc) · 1.05 KB
/
kms-dockerfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
# Dockerfile for KMS Server
# Copyright (C) 2019 - 2020 liuxiangxiang <[email protected]>
# Reference URL:
# https://github.com/liuxinagxiang/vlmcsd
FROM alpine:latest
LABEL maintainer="liuxiangxiang <[email protected]>"
ENV KMS_RELEASE https://github.com/liuxinagxiang/vlmcsd/archive/master.zip
RUN runDeps="\
g++ \
gcc \
bash \
wget \
make \
unzip \
"; \
set -ex \
&& apk add --no-cache supervisor nginx --virtual .build-deps ${runDeps} \
&& mkdir /run/nginx/ \
&& cd /tmp \
&& wget -O vlmcsd.zip ${KMS_RELEASE} \
&& unzip vlmcsd.zip \
&& cd vlmcsd-master \
&& make \
&& cp -p bin/vlmcsd /usr/bin/ \
&& chmod 755 /usr/bin/vlmcsd \
&& rm -rf /tmp/vlmcsd.zip /tmp/vlmcsd-master \
&& apk del .build-deps
EXPOSE 1688 80
COPY supervisord.conf /etc/supervisord.conf
CMD ["/usr/bin/supervisord","-c","/etc/supervisord.conf"]
# docekr pull liuxiangxiang/kms-1.1.0
# docker run -d -p 1688:1688 -p 80:80 -v /docker/kms.conf:/etc/nginx/conf.d/default.conf --name kms1.1.0 --restart=always liuxiangxiang/kms-1.1.0