diff --git a/shadowsocks-rust/Dockerfile b/shadowsocks-rust/Dockerfile index a8e7458..49598ed 100644 --- a/shadowsocks-rust/Dockerfile +++ b/shadowsocks-rust/Dockerfile @@ -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" ]