mirror of
https://github.com/shadowsocks/shadowsocks-rust.git
synced 2026-02-09 01:59:16 +08:00
add v2ray-plugin image example
This commit is contained in:
15
Dockerfile.v2ray
Normal file
15
Dockerfile.v2ray
Normal file
@@ -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" ]
|
||||
Reference in New Issue
Block a user