forked from xxb/nps-docker
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathDockerfile
31 lines (25 loc) · 874 Bytes
/
Dockerfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
FROM alpine:3.12
MAINTAINER docker <[email protected]>
ENV NPS_VERSION 0.26.10
ENV MODE kcp
ENV WEB_PASSWORD password
ENV PUBLIC_VKEY 12345678
ENV BRIDGE_PORT 8024
ENV ALLOW_POSTS "53,9001-9009,10001,11000-12000"
ENV HTTP_PROXY_PORT 80
ENV HTTPS_PROXY_PORT 443
ENV DOMAIN nps.youdomain.com
ENV TZ=Asia/Shanghai
LABEL name=nps
WORKDIR /
RUN set -x && \
apk add -U tzdata ca-certificates openssl && \
wget --no-check-certificate https://github.com/cnlh/nps/releases/download/v${NPS_VERSION}/linux_amd64_server.tar.gz && \
tar xzf linux_amd64_server.tar.gz && \
wget --no-check-certificate https://github.com/cnlh/nps/releases/download/v${NPS_VERSION}/linux_amd64_client.tar.gz && \
tar xzf linux_amd64_client.tar.gz && \
rm -rf *.tar.gz
VOLUME /conf
ADD entrypoint.sh /entrypoint.sh
RUN chmod +x /entrypoint.sh
ENTRYPOINT ["/entrypoint.sh"]