277b00da87
* added sing-box from repo (#12) * edge repo for sing-box (#13) * added sing-box from repo * add testing repo for sing-box * Revert "added sing-box from repo (#12)" This reverts commit256e43352a. * Revert "edge repo for sing-box (#13)" This reverts commitbb1ac60acc. * Update shadowsocks.dockerfile --------- Co-authored-by: mercury <mercury.kd@gmail.com>
18 lines
987 B
Docker
18 lines
987 B
Docker
ARG image
|
|
FROM $image
|
|
RUN apk add openssh git xz \
|
|
&& mkdir /root/.ssh \
|
|
&& wget -O shadowsocks-rust.x86_64-unknown-linux-musl.tar.xz $(wget -q -O - https://api.github.com/repos/shadowsocks/shadowsocks-rust/releases/latest | grep browser_download_url | cut -d\" -f4 | egrep '.x86_64-unknown-linux-musl.tar.xz$') \
|
|
&& tar -xf shadowsocks-rust.x86_64-unknown-linux-musl.tar.xz \
|
|
&& wget -O v2ray-plugin-linux-amd64.tar.gz $(wget -q -O - https://api.github.com/repos/teddysun/v2ray-plugin/releases/latest | grep browser_download_url | cut -d\" -f4 | egrep 'v2ray-plugin-linux-amd64') \
|
|
&& tar -xf v2ray-plugin-linux-amd64.tar.gz \
|
|
&& mv sslocal /usr/bin/ \
|
|
&& mv ssserver /usr/bin/ \
|
|
&& mv ssmanager /usr/bin/ \
|
|
&& mv ssservice /usr/bin/ \
|
|
&& mv ssurl /usr/bin/ \
|
|
&& mv v2ray-plugin_linux_amd64 /usr/bin/v2ray-plugin \
|
|
&& rm v2ray-plugin-linux-amd64.tar.gz \
|
|
&& rm shadowsocks-rust.x86_64-unknown-linux-musl.tar.xz
|
|
ENV ENV="/root/.ashrc"
|