2018-07-03 22:57:20 +09:00
|
|
|
# Dockerfile for KMS Server
|
2019-06-09 14:40:22 +09:00
|
|
|
# Copyright (C) 2018 - 2019 Teddysun <i@teddysun.com>
|
2018-07-03 22:57:20 +09:00
|
|
|
# Reference URL:
|
|
|
|
# https://github.com/Wind4/vlmcsd
|
|
|
|
|
|
|
|
FROM alpine:latest
|
2018-11-06 20:33:59 +09:00
|
|
|
LABEL maintainer="Teddysun <i@teddysun.com>"
|
2018-07-03 22:57:20 +09:00
|
|
|
|
|
|
|
ENV KMS_RELEASE https://github.com/Wind4/vlmcsd/archive/master.zip
|
|
|
|
|
2018-08-11 20:46:52 +09:00
|
|
|
RUN runDeps="\
|
|
|
|
g++ \
|
|
|
|
gcc \
|
|
|
|
wget \
|
|
|
|
make \
|
|
|
|
unzip \
|
|
|
|
"; \
|
|
|
|
set -ex \
|
|
|
|
&& apk add --no-cache --virtual .build-deps ${runDeps} \
|
|
|
|
&& 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
|
2018-07-03 22:57:20 +09:00
|
|
|
|
|
|
|
EXPOSE 1688
|
|
|
|
|
2018-08-11 20:46:52 +09:00
|
|
|
CMD [ "vlmcsd", "-D" ]
|