added xray plugin to shadowsocks
All checks were successful
CI / Build shadowsocks-rust docker images (push) Successful in 11m23s

This commit is contained in:
2024-09-12 06:51:56 +08:00
parent 1ccf7a5c1f
commit 346732e7c8
2 changed files with 29 additions and 0 deletions

View File

@@ -42,6 +42,8 @@ RUN case "$TARGETPLATFORM" in \
COPY download_v2ray.sh download_v2ray.sh
RUN ./download_v2ray.sh "$TARGETPLATFORM"
COPY download_xray.sh download_xray.sh
RUN ./download_xray.sh "$TARGETPLATFORM"
FROM busybox:musl AS sslocal
@@ -50,6 +52,7 @@ COPY --from=builder /root/shadowsocks-rust/target/release/sslocal /usr/bin/
COPY --from=builder /root/shadowsocks-rust/examples/config.json /etc/shadowsocks-rust/
COPY --from=builder /root/shadowsocks-rust/docker/docker-entrypoint.sh /usr/bin/
COPY --from=builder /tmp/v2ray-plugin /usr/bin/v2ray-plugin
COPY --from=builder /tmp/xray-plugin /usr/bin/xray-plugin
ENTRYPOINT [ "docker-entrypoint.sh" ]
CMD [ "sslocal", "--log-without-time", "-c", "/etc/shadowsocks-rust/config.json" ]
@@ -60,6 +63,7 @@ COPY --from=builder /root/shadowsocks-rust/target/release/ssserver /usr/bin/
COPY --from=builder /root/shadowsocks-rust/examples/config.json /etc/shadowsocks-rust/
COPY --from=builder /root/shadowsocks-rust/docker/docker-entrypoint.sh /usr/bin/
COPY --from=builder /tmp/v2ray-plugin /usr/bin/v2ray-plugin
COPY --from=builder /tmp/xray-plugin /usr/bin/xray-plugin
ENTRYPOINT [ "docker-entrypoint.sh" ]