Skip to content

Instantly share code, notes, and snippets.

@zhengchun
Last active July 11, 2022 09:38
Show Gist options
  • Save zhengchun/2eaec54b84e622b4974de6db13d49e94 to your computer and use it in GitHub Desktop.
Save zhengchun/2eaec54b84e622b4974de6db13d49e94 to your computer and use it in GitHub Desktop.
v2ray plugin for shadowsocks
FROM imhang/shadowsocks-docker
RUN \
set -ex \
&& apk add --no-cache --virtual .build-deps \
curl \
&& curl -fSL https://github.com/shadowsocks/v2ray-plugin/releases/download/v1.1.0/v2ray-plugin-linux-amd64-v1.1.0.tar.gz | tar xz \
&& cp v2ray-plugin_linux_amd64 /usr/bin/v2ray-plugin \
&& apk del .build-deps
ENV SERVER_PORT 8388
ENV PASSWORD 123456
EXPOSE $SERVER_PORT
ENTRYPOINT ss-server -p ${SERVER_PORT} -k ${PASSWORD} -m chacha20-ietf-poly1305 --plugin v2ray-plugin --plugin-opts "server"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment