update dockerfile for rustc 1.89
This commit is contained in:
parent
c89c7ba04d
commit
dda4a50e75
2 changed files with 5 additions and 2 deletions
|
|
@ -40,7 +40,6 @@ RUN apt-get update && apt-get install -qy --no-install-recommends $BUILD_DEPS ${
|
|||
echo "Install toolchain" && \
|
||||
rustup target add $(cat /arch)-${TARGET_SUFFIX} && \
|
||||
echo "Building rpxy from source" && \
|
||||
cargo update &&\
|
||||
cargo build --release --target=$(cat /arch)-${TARGET_SUFFIX} ${CARGO_FEATURES} && \
|
||||
strip --strip-all /tmp/target/$(cat /arch)-${TARGET_SUFFIX}/release/rpxy &&\
|
||||
cp /tmp/target/$(cat /arch)-${TARGET_SUFFIX}/release/rpxy /tmp/target/release/rpxy
|
||||
|
|
|
|||
|
|
@ -25,7 +25,11 @@ COPY . /tmp/
|
|||
ENV RUSTFLAGS="-C link-arg=-s"
|
||||
|
||||
RUN echo "Building rpxy from source" && \
|
||||
cargo update && \
|
||||
# force to reinstall rustup to get the latest version
|
||||
curl https://sh.rustup.rs -sqSf | sh -s -- -y --profile minimal --default-toolchain stable --default-host $(uname -m)-unknown-linux-gnu && \
|
||||
rustup target add $(cat /arch)-unknown-linux-musl || rustup component add --toolchain stable rust-src && \
|
||||
rustup component add --toolchain stable rustfmt clippy && \
|
||||
# build rpxy
|
||||
cargo build --release --target $(cat /arch)-unknown-linux-musl ${CARGO_FEATURES} && \
|
||||
musl-strip --strip-all /tmp/target/$(cat /arch)-unknown-linux-musl/release/rpxy && \
|
||||
cp /tmp/target/$(cat /arch)-unknown-linux-musl/release/rpxy /tmp/target/release/rpxy
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue