Added KMS Server Docker Image

Signed-off-by: Teddysun <i@teddysun.com>
This commit is contained in:
Teddysun
2018-07-03 22:57:20 +09:00
parent 6f733aa4f4
commit 24fcd15302
3 changed files with 64 additions and 0 deletions

29
docker/kms/Dockerfile Normal file
View File

@@ -0,0 +1,29 @@
# Dockerfile for KMS Server
# Copyright (C) 2018 Teddysun <i@teddysun.com>
# Reference URL:
# https://github.com/Wind4/vlmcsd
FROM alpine:latest
MAINTAINER Teddysun <i@teddysun.com>
ENV KMS_RELEASE https://github.com/Wind4/vlmcsd/archive/master.zip
RUN apk add --no-cache --virtual .build-deps \
g++ \
gcc \
wget \
make \
unzip \
&& 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
CMD [ "/usr/bin/vlmcsd", "-D" ]