fixed shadowsocks-rust build
All checks were successful
CI / Build shadowsocks-rust docker images (push) Successful in 11m59s

This commit is contained in:
2024-07-07 20:58:58 +08:00
parent cfe0311a70
commit 6ce418c18f
2 changed files with 7 additions and 7 deletions

View File

@@ -1,6 +1,6 @@
FROM --platform=$TARGETPLATFORM rust:alpine AS builder
FROM --platform=$BUILDPLATFORM rust:alpine AS builder
ARG VERSION TARGETPLATFORM
ARG VERSION TARGETPLATFORM BUILDPLATFORM
RUN set -x \
&& apk add --no-cache build-base cmake llvm15-dev clang15-libclang clang15 rust-bindgen git rustup
@@ -40,7 +40,7 @@ RUN case "$TARGETPLATFORM" in \
&& RUSTFLAGS="-C linker=$CC" CC=$CC cargo build --target "$RUST_TARGET" --release --features "full-extra" \
&& mv target/$RUST_TARGET/release/ss* target/release/
FROM alpine:3.20 AS sslocal
FROM --platform=$TARGETPLATFORM alpine:3.20 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/