I tried to build aarch64-unknown-linux-musl target on amd64 Linux, but it fails at psm v0.1.21.PRQL/prql#2568 (comment)$ export CARGO_TARGET_AARCH64_UNKNOWN_LINUX_MUSL_LINKER=aarch64-linux-gnu-gcc $ cargo build -p prqlc --release --target=aarch64-unknown-linux-musl Compiling ...
cargo can download all dependencies RUN mkdir -p /rust/app/src && echo 'fn main(){}' > app/src/main.rs WORKDIR /rust/app # Build & cache dependencies COPY Cargo.toml Cargo.lock ./ RUN cargo build --release --target x86_64-unknown-linux-musl # Copy application code...
Build release binaries for x86_64-unknown-linux-musl and aarch64-unknown-linux-musl to enable Zinnia to run in docker images based on Alpine Linux. Alpine Linux does not provide GNU libc, we need to compile and link against MUSL instead. Unfortunately, Deno does not support MUSL yet: targe...
RUN cargo build --release --target x86_64-unknown-linux-musl FROM alpine as final COPY --from=builder /home/app/platforms/rkc/target/release/rkc /home/app/rkc CMD ["/home/app/rkc"] I understand that no such file or directory means that there was something linked library that wasn't...
Dockerfile ### # Dockerfile to build Nginx Installed Containers # Based on CentOS ###...
COPY --from=builder /app/target/x86_64-unknown-linux-musl/release/myapp . # 运行可执行文件 CMD ["./myapp"] 上述Dockerfile中,首先使用Rust官方提供的基础镜像作为构建环境,然后设置工作目录并将项目文件复制到容器中。接着,通过安装交叉编译工具链和目标平台,使用Cargo进行交叉编译。最后,使用Alpine镜像作为...
看起来你想交叉编译目标到x86_64-unknown-linux-musl,你想给予cargo-zigbuild一个尝试:...
如果您还没有一个,您将需要从您的软件包管理器download and extract it from here或build it yourself...
COPY src ./src RUN cargo install --target x86_64-unknown-linux-musl --path . However, it fails at the step with cargo install, which appears to be because it's unable to find musl-g++. That seems strange. Am I misunderstanding the error? I'm a bit lost as to how to move ...