2026-04-06 02:07:17 +00:00
|
|
|
# Pre-baked cross-compiler for Windows amd64 Tauri releases (runs on Linux amd64).
|
|
|
|
|
# All MinGW and Node.js dependencies are installed once here; CI jobs skip apt-get entirely.
|
2026-04-12 23:54:57 +00:00
|
|
|
# Rebuild when: Rust toolchain version changes, Node.js major version changes,
|
|
|
|
|
# OpenSSL major version changes (used via OPENSSL_STATIC=1), or Tauri CLI changes
|
|
|
|
|
# that affect bundler system deps.
|
2026-04-06 02:07:17 +00:00
|
|
|
# Tag format: rust<VER>-node<VER>
|
|
|
|
|
FROM rust:1.88-slim
|
|
|
|
|
|
|
|
|
|
RUN apt-get update -qq \
|
|
|
|
|
&& apt-get install -y -qq --no-install-recommends \
|
2026-04-13 01:07:20 +00:00
|
|
|
ca-certificates \
|
2026-04-06 02:07:17 +00:00
|
|
|
mingw-w64 \
|
|
|
|
|
curl \
|
|
|
|
|
nsis \
|
|
|
|
|
perl \
|
|
|
|
|
make \
|
|
|
|
|
jq \
|
|
|
|
|
git \
|
|
|
|
|
&& curl -fsSL https://deb.nodesource.com/setup_22.x | bash - \
|
|
|
|
|
&& apt-get install -y --no-install-recommends nodejs \
|
|
|
|
|
&& rm -rf /var/lib/apt/lists/*
|
|
|
|
|
|
|
|
|
|
RUN rustup target add x86_64-pc-windows-gnu
|