FROM docker.io/library/debian:trixie ENV DEBIAN_FRONTEND=noninteractive RUN apt-get update && apt-get install -y \ debhelper-compat \ equivs \ meson \ desktop-file-utils \ appstream-util \ curl \ ca-certificates \ tar \ gzip \ file \ gettext \ libgtk-4-dev \ libadwaita-1-dev \ libgtksourceview-5-dev \ pkg-config \ && apt-get clean \ && rm -rf /var/lib/apt/lists/* # Install rust toolchain RUN curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh -s -- -y ENV PATH="/root/.cargo/bin:${PATH}" ENV RUSTUP_TOOLCHAIN=stable RUN apt-get install -y --no-install-recommends equivs && \ mkdir -p /tmp/equivs && cd /tmp/equivs && \ cat > rust-rustup.control <<'EOF' Section: misc Priority: optional Standards-Version: 4.7.4 Package: rust-rustup Version: 1.92.0 Provides: rustc (= 1.92.0), cargo (= 1.92.0) Description: Dummy package claiming rustc/cargo are provided by rustup. This package exists solely to satisfy dpkg Build-Depends checks to create the binary package from the source package. EOF RUN cd /tmp/equivs && \ equivs-build rust-rustup.control && \ dpkg -i rust-rustup_1.92.0_all.deb && \ rm -rf /tmp/equivs && \ apt-get remove -y equivs && apt-get autoremove -y && apt-get clean