1
Fork 0

Add rust builder images

This commit is contained in:
Lucas Schwiderski 2024-02-29 16:32:19 +01:00
parent 5153adfe20
commit be96349cb2
Signed by: lucas
GPG key ID: AA12679AAA6DF4D8
3 changed files with 16 additions and 0 deletions

1
rust-linux/Dockerfile Normal file
View file

@ -0,0 +1 @@
FROM rust:slim

13
rust-windows/Dockerfile Normal file
View 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
View file

@ -0,0 +1,2 @@
[build]
target = "x86_64-pc-windows-gnu"