From fc3696e1d5f57e034147b253e77ffc7b29b4b8d1 Mon Sep 17 00:00:00 2001 From: realies <5107843+realies@users.noreply.github.com> Date: Sun, 31 Oct 2021 18:56:01 +0200 Subject: [PATCH] add v2ray-plugin image example --- Dockerfile.v2ray | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100644 Dockerfile.v2ray diff --git a/Dockerfile.v2ray b/Dockerfile.v2ray new file mode 100644 index 00000000..d2e1e0c0 --- /dev/null +++ b/Dockerfile.v2ray @@ -0,0 +1,15 @@ +FROM ghcr.io/shadowsocks/ssserver-rust:latest + +USER root + +RUN cd /tmp && \ + TAG=$(wget -qO- https://api.github.com/repos/shadowsocks/v2ray-plugin/releases/latest | grep tag_name | cut -d '"' -f4) && \ + wget https://github.com/shadowsocks/v2ray-plugin/releases/download/$TAG/v2ray-plugin-linux-amd64-$TAG.tar.gz && \ + tar -xf *.gz && \ + rm *.gz && \ + mv v2ray* /usr/bin/v2ray-plugin && \ + chmod +x /usr/bin/v2ray-plugin + +USER nobody + +ENTRYPOINT [ "ssserver", "--log-without-time", "-c", "/etc/shadowsocks-rust/config.json" ]