fixed shadowsocks-rust build
All checks were successful
CI / Build shadowsocks-rust docker images (push) Successful in 11m59s
All checks were successful
CI / Build shadowsocks-rust docker images (push) Successful in 11m59s
This commit is contained in:
@@ -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/
|
||||
|
Reference in New Issue
Block a user