mirror of
https://github.com/alexgo-io/stacks-subnets.git
synced 2026-04-29 12:15:25 +08:00
fix: repair dist builds, restore binaries in main Dockerfile, fix build on Windows and non-x86_64 targets
This commit is contained in:
17
build-scripts/Dockerfile.linux-arm64
Normal file
17
build-scripts/Dockerfile.linux-arm64
Normal file
@@ -0,0 +1,17 @@
|
||||
FROM rust:stretch as build
|
||||
|
||||
WORKDIR /src
|
||||
|
||||
COPY . .
|
||||
|
||||
RUN rustup target add aarch64-unknown-linux-gnu
|
||||
|
||||
RUN apt-get update && apt-get install -y gcc-aarch64-linux-gnu
|
||||
|
||||
RUN CC=aarch64-linux-gnu-gcc \
|
||||
CC_aarch64_unknown_linux_gnu=aarch64-linux-gnu-gcc \
|
||||
CARGO_TARGET_AARCH64_UNKNOWN_LINUX_GNU_LINKER=aarch64-linux-gnu-gcc \
|
||||
cargo build --release --workspace=./ --target aarch64-unknown-linux-gnu
|
||||
|
||||
FROM scratch AS export-stage
|
||||
COPY --from=build /src/target/aarch64-unknown-linux-gnu/release /
|
||||
Reference in New Issue
Block a user