|
@ -0,0 +1,11 @@ |
|
|
|
|
|
if not exist "%cd%\docker\linux\target" mkdir "%cd%\docker\linux\target" |
|
|
|
|
|
if not exist "%cd%\docker\linux\cargo" mkdir "%cd%\docker\linux\cargo" |
|
|
|
|
|
|
|
|
|
|
|
docker run --rm ^ |
|
|
|
|
|
-e CARGO_HOME="/tmp/cargo" ^ |
|
|
|
|
|
-v "%cd%":/usr/src/rsddns ^ |
|
|
|
|
|
-v "%cd%\docker\linux\target":/usr/src/rsddns/target ^ |
|
|
|
|
|
-v "%cd%\docker\linux\cargo":/tmp/cargo ^ |
|
|
|
|
|
-w /usr/src/rsddns ^ |
|
|
|
|
|
rust:1.30.1-stretch ^ |
|
|
|
|
|
cargo build --release && strip $/usr/src/rsddns/target/release/rsddns |