Skip to content

Commit

Permalink
fix(image): change binary path in docker image to prevent it being ov…
Browse files Browse the repository at this point in the history
…erwrite in k8s deployment

Signed-off-by: just1900 <legendj228@gmail.com>
  • Loading branch information
just1900 committed Mar 16, 2023
1 parent 08f350f commit 49543bf
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -38,18 +38,19 @@ RUN case "$TARGETARCH" in \

FROM alpine:3.17 AS sslocal

COPY --from=builder /root/shadowsocks-rust/target/release/sslocal /usr/local/bin/
# 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/
COPY --from=builder /root/shadowsocks-rust/examples/config.json /etc/shadowsocks-rust/
COPY --from=builder /root/shadowsocks-rust/docker/docker-entrypoint.sh /usr/local/bin/
COPY --from=builder /root/shadowsocks-rust/docker/docker-entrypoint.sh /usr/bin/

ENTRYPOINT [ "docker-entrypoint.sh" ]
CMD [ "sslocal", "--log-without-time", "-c", "/etc/shadowsocks-rust/config.json" ]

FROM alpine:3.17 AS ssserver

COPY --from=builder /root/shadowsocks-rust/target/release/ssserver /usr/local/bin/
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/local/bin/
COPY --from=builder /root/shadowsocks-rust/docker/docker-entrypoint.sh /usr/bin/

ENTRYPOINT [ "docker-entrypoint.sh" ]

Expand Down

0 comments on commit 49543bf

Please sign in to comment.