Add rust builder images
This commit is contained in:
parent
5153adfe20
commit
be96349cb2
3 changed files with 16 additions and 0 deletions
1
rust-linux/Dockerfile
Normal file
1
rust-linux/Dockerfile
Normal file
|
@ -0,0 +1 @@
|
||||||
|
FROM rust:slim
|
13
rust-windows/Dockerfile
Normal file
13
rust-windows/Dockerfile
Normal file
|
@ -0,0 +1,13 @@
|
||||||
|
FROM rust-linux
|
||||||
|
|
||||||
|
RUN set -e; \
|
||||||
|
apt-get update; \
|
||||||
|
apt-get install -y --no-install-recommends g++-mingw-w64-x86-64; \
|
||||||
|
apt-get clean; \
|
||||||
|
rm -rf /var/lib/apt/lists/* /var/cache/apt/*
|
||||||
|
|
||||||
|
RUN set -e; \
|
||||||
|
rustup target add x86_64-pc-windows-gnu; \
|
||||||
|
rustup toolchain install --force-non-host stable-x86_64-pc-windows-gnu
|
||||||
|
|
||||||
|
COPY config.toml $CARGO_HOME/config.toml
|
2
rust-windows/config.toml
Normal file
2
rust-windows/config.toml
Normal file
|
@ -0,0 +1,2 @@
|
||||||
|
[build]
|
||||||
|
target = "x86_64-pc-windows-gnu"
|
Loading…
Add table
Reference in a new issue