dockerfile-ss 左手的ㄟ右手 2022-07-19 00:28 143阅读 0赞 FROM alpine:3.4 MAINTAINER python <becivells@gmail.com> RUN apk -U add python py-pip \ && pip install shadowsocks && mkdir /etc/shadowsocks && rm -rf /var/cache/apk/* COPY shadowsocks.json /etc/shadowsocks/shadowsocks.json EXPOSE 9001 9002 CMD [ "ssserver","-c","/etc/shadowsocks/shadowsocks.json" ] ] shadowsocks.json { "server":"0.0.0.0", "local_address":"127.0.0.1", "local_port":1080, "port_password":{ "9001":"youpassword", "9002":"yourpassword1" }, "timeout":300, "method":"aes-256-cfb", "fast_open": false } 放置到同一目录下 即可 linux 客户端配置文件 { "server":"server_ip", "server_port":30696, "local_port":1080, "password":"password", "timeout":600, "method":"aes-256-cfb" }
还没有评论,来说两句吧...