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
426 B
11 lines
426 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.31-stretch ^
|
|
cargo build --release && strip /usr/src/rsddns/target/release/rsddns
|