# dockerbuild
Docker build tool, build software using docker
Install:
```shell
$ cargo install dockerbuild
--OR--
$ cargo install --git https://git.hatter.ink/hatter/dockerbuild.git
```
Config file:
* `dockerbuild.json`
* `~/.dockerbuild.json`
* `/etc/dockerbuild.json`
```json
echo '{
"image": "rust:1.47",
"mirror": "git://mirrors.ustc.edu.cn/crates.io-index"
}' > ~/.dockerbuild.json
```
Build:
```shell
$ dockerbuild build --release --target-dir linux_target
$ dockerbuild :image:i386/rust:1.47 build --release --target-dir linux_i386_target
$ dockerbuild :image:i386/rust:1.47 :mirror:git:*** build --release --target-dir linux_i386_target
```
Other commands:
```shell
$ dockerbuild :rustc --version
```
Hide logo:
```shell
$ LOGO=off dockerbuild :rustc --version
```
Docker official images:
https://hub.docker.com/_/rust