fix shadowsocks build
Some checks failed
CI / Build shadowsocks-rust docker images (push) Failing after 6s
Some checks failed
CI / Build shadowsocks-rust docker images (push) Failing after 6s
This commit is contained in:
@@ -1,9 +1,9 @@
|
||||
FROM --platform=$BUILDPLATFORM rust:alpine AS builder
|
||||
FROM --platform=$BUILDPLATFORM rust:alpine3.19 AS builder
|
||||
|
||||
ARG VERSION TARGETPLATFORM BUILDPLATFORM
|
||||
|
||||
RUN set -x \
|
||||
&& apk add --no-cache build-base cmake llvm15-dev clang15-libclang clang15 rust-bindgen git rustup curl
|
||||
&& apk add --no-cache build-base cmake llvm-dev clang-libclang clang git rustup curl rust-bindgen
|
||||
|
||||
WORKDIR /root/shadowsocks-rust
|
||||
|
||||
@@ -37,6 +37,7 @@ RUN case "$TARGETPLATFORM" in \
|
||||
&& echo "CC=$CC" \
|
||||
&& rustup override set stable \
|
||||
&& rustup target add "$RUST_TARGET" \
|
||||
&& cargo install
|
||||
&& RUSTFLAGS="-C linker=$CC" CC=$CC cargo build --target "$RUST_TARGET" --release --features "full-extra" \
|
||||
&& mv target/$RUST_TARGET/release/ss* target/release/
|
||||
|
||||
|
Reference in New Issue
Block a user