diff --git a/rust-linux/Dockerfile b/rust-linux/Dockerfile new file mode 100644 index 0000000..2e9265f --- /dev/null +++ b/rust-linux/Dockerfile @@ -0,0 +1 @@ +FROM rust:slim diff --git a/rust-windows/Dockerfile b/rust-windows/Dockerfile new file mode 100644 index 0000000..0507946 --- /dev/null +++ b/rust-windows/Dockerfile @@ -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 diff --git a/rust-windows/config.toml b/rust-windows/config.toml new file mode 100644 index 0000000..ba54493 --- /dev/null +++ b/rust-windows/config.toml @@ -0,0 +1,2 @@ +[build] +target = "x86_64-pc-windows-gnu"