Update Dockerfile

Signed-off-by: Teddysun <i@teddysun.com>
This commit is contained in:
Teddysun
2018-08-11 20:46:52 +09:00
parent 9ffd12f3e0
commit f82cc0c2a3
2 changed files with 27 additions and 24 deletions

View File

@@ -8,22 +8,25 @@ 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
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
EXPOSE 1688
CMD [ "/usr/bin/vlmcsd", "-D" ]
CMD [ "vlmcsd", "-D" ]