This commit is contained in:
2026-07-23 15:22:10 +08:00
parent 1eefe41bac
commit 9ab7ba66f3
4 changed files with 37 additions and 13 deletions

View File

@@ -1,14 +1,17 @@
# 戎行专用OpenVPN 客户端 + SOCKS5仅内网代理,不接管默认路由
FROM alpine:3.21
# 戎行专用OpenVPN 客户端 + Dante SOCKS5仅内网代理
FROM alpine:3.19
RUN apk add --no-cache \
openvpn \
bash \
iproute2 \
microsocks \
curl
# 与业务镜像一致,使用国内 apk 源
RUN sed -i 's/dl-cdn.alpinelinux.org/mirrors.aliyun.com/g' /etc/apk/repositories \
&& apk add --no-cache \
openvpn \
bash \
iproute2 \
dante-server \
curl
COPY entrypoint.sh /entrypoint.sh
COPY sockd.conf.template /etc/sockd.conf.template
RUN chmod +x /entrypoint.sh
ENV VPN_DIR=/vpn \