2020-01-20 22:52:03 +09:00
|
|
|
# Dockerfile for KMS Server
|
|
|
|
# Copyright (C) 2018 - 2020 Teddysun <i@teddysun.com>
|
|
|
|
# Reference URL:
|
|
|
|
# https://github.com/Wind4/vlmcsd
|
|
|
|
|
2020-01-30 20:47:18 +09:00
|
|
|
FROM --platform=$TARGETPLATFORM alpine:latest AS builder
|
|
|
|
WORKDIR /root
|
|
|
|
RUN apk add --no-cache git make build-base && \
|
|
|
|
git clone --branch master --single-branch https://github.com/Wind4/vlmcsd.git && \
|
|
|
|
cd vlmcsd/ && \
|
|
|
|
make
|
|
|
|
|
2020-01-20 22:52:03 +09:00
|
|
|
FROM --platform=$TARGETPLATFORM alpine:latest
|
|
|
|
LABEL maintainer="Teddysun <i@teddysun.com>"
|
|
|
|
|
2020-01-30 20:47:18 +09:00
|
|
|
COPY --from=builder /root/vlmcsd/bin/vlmcsd /usr/bin/vlmcsd
|
2020-01-20 22:52:03 +09:00
|
|
|
EXPOSE 1688
|
|
|
|
CMD [ "vlmcsd", "-D" ]
|