You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
11 lines
429 B
11 lines
429 B
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
|