KMS

KMS 搭建 建议在局域网搭建和使用,不建议放在公网 VPS,会被微软投诉导致 VPS 服务商关闭 VPS 打包 Docker 镜像 Dockerfile FROM alpine:latest as builder WORKDIR /tmp RUN apk add --no-cache git make build-base && \ git clone --branch master --single-branch https://github.com/Wind4/vlmcsd.git && \ cd vlmcsd/ && \ make FROM alpine:latest WORKDIR /tmp COPY --from=builder /tmp/vlmcsd/bin/vlmcsd /usr/bin/vlmcsd EXPOSE 1688/tcp CMD [ "/usr/bin/vlmcsd", "-D", "-d" ] 打包脚本 build.sh #!/bin/bash PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin docker buildx build --no-cache --platform linux/amd64,linux/arm64 -f Dockerfile -t liwei19920307/vlmcsd:latest . --push 打包命令 chmod a+x ....

May 5, 2023 · Kevin