Dockerfile.windows 637 B

12345678910111213141516171819202122
  1. FROM archlinux
  2. RUN pacman -Syu --noconfirm
  3. RUN pacman -S --noconfirm base-devel mingw-w64-gcc mingw-w64-cmake \
  4. pkgconf git zip unzip nsis
  5. # Install Rust
  6. ENV RUSTUP_HOME=/usr/local/rustup \
  7. CARGO_HOME=/usr/local/cargo \
  8. PATH=/usr/local/cargo/bin:$PATH
  9. RUN curl -o rustup.sh --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs
  10. RUN chmod +x rustup.sh && ./rustup.sh -y
  11. RUN rustup target add x86_64-pc-windows-gnu
  12. # Download and cache fonts
  13. RUN mkdir -p /root/build
  14. WORKDIR /root/build
  15. RUN wget -c https://dark.fi/assets/ibm-plex-mono-regular.otf
  16. RUN wget -c https://dark.fi/assets/NotoColorEmoji.ttf
  17. WORKDIR /root/build/