Skip to content

Commit

Permalink
add v2ray-plugin image example
Browse files Browse the repository at this point in the history
  • Loading branch information
realies authored and zonyitoo committed Oct 31, 2021
1 parent 577b526 commit fc3696e
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions Dockerfile.v2ray
Original file line number Diff line number Diff line change
@@ -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" ]

0 comments on commit fc3696e

Please sign in to comment.