From 58db5b27fe38fd64381ba196e1198df148654db7 Mon Sep 17 00:00:00 2001 From: Walter Oggioni Date: Mon, 19 Aug 2024 21:23:08 +0800 Subject: [PATCH] rebased shadowsocks images on scratch --- shadowsocks-rust/Dockerfile | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/shadowsocks-rust/Dockerfile b/shadowsocks-rust/Dockerfile index 1f5126a..4e17e52 100644 --- a/shadowsocks-rust/Dockerfile +++ b/shadowsocks-rust/Dockerfile @@ -43,7 +43,7 @@ RUN case "$TARGETPLATFORM" in \ COPY download_v2ray.sh download_v2ray.sh RUN ./download_v2ray.sh "$TARGETPLATFORM" -FROM alpine:latest AS sslocal +FROM scratch AS sslocal # NOTE: Please be careful to change the path of these binaries, refer to #1149 for more information. COPY --from=builder /root/shadowsocks-rust/target/release/sslocal /usr/bin/ @@ -54,7 +54,7 @@ COPY --from=builder /tmp/v2ray-plugin /usr/bin/v2ray-plugin ENTRYPOINT [ "docker-entrypoint.sh" ] CMD [ "sslocal", "--log-without-time", "-c", "/etc/shadowsocks-rust/config.json" ] -FROM alpine:latest AS ssserver +FROM scratch AS ssserver COPY --from=builder /root/shadowsocks-rust/target/release/ssserver /usr/bin/ COPY --from=builder /root/shadowsocks-rust/examples/config.json /etc/shadowsocks-rust/