blob: 46c2111b1dff7e0172c168548d9048333ee9b808 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
|
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
|