Skip to content

YangzhenZhao/rust-docker-cn

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Usage

ubuntu

Build

cd ubuntu
docker build -t muslrust-cn .

Run Test

cd ubuntu-test
sh test.sh

alpine

Build

cd alpine
docker build -t alpine-rust-cn .

Run Test

cd alpine-test

cd helloworld
cargo clean
docker run -it -v ${PWD}:/volume/ --rm alpine-rust-cn cargo run --release
docker run -it -v ${PWD}:/volume/ --rm alpine-rust-cn cargo run --release --target x86_64-unknown-linux-musl

注意: 使用 alpine-rust-cn 编译出来的可执行文件经常会出问题, 请谨慎使用

References

https://github.com/clux/muslrust
https://wiki.ubuntu.com/Releases
https://github.com/emk/rust-musl-builder

About

方便国内使用 docker 进行 rust 编译

Resources

Stars

Watchers

Forks