| 12 |
12 |
|
# Keeps the Rust toolchain out of the runtime image.
|
| 13 |
13 |
|
|
| 14 |
14 |
|
# =====================================================================
|
| 15 |
|
- |
# rust-build: ironbar, anyrun, wl-screenrec
|
|
15 |
+ |
# rust-build: wl-screenrec
|
| 16 |
16 |
|
# =====================================================================
|
| 17 |
|
- |
# All three are small crates. Grouped in one stage so cargo's registry
|
| 18 |
|
- |
# cache is amortized across them.
|
|
17 |
+ |
# Small crate not packaged in Fedora. Its own stage keeps the Rust
|
|
18 |
+ |
# toolchain out of the runtime image. clang-devel is for wl-screenrec's
|
|
19 |
+ |
# ffmpeg-sys bindgen.
|
| 19 |
20 |
|
FROM registry.fedoraproject.org/fedora:42 AS rust-build
|
| 20 |
21 |
|
RUN dnf install -y \
|
| 21 |
22 |
|
rust cargo git \
|
| 22 |
23 |
|
gcc make pkgconf-pkg-config \
|
| 23 |
24 |
|
clang-devel \
|
| 24 |
|
- |
gtk3-devel gtk-layer-shell-devel \
|
| 25 |
|
- |
gtk4-devel gtk4-layer-shell-devel \
|
| 26 |
25 |
|
wayland-devel libdrm-devel \
|
| 27 |
|
- |
libevdev-devel libinput-devel \
|
| 28 |
|
- |
luajit-devel \
|
| 29 |
26 |
|
ffmpeg-free-devel \
|
| 30 |
27 |
|
openssl-devel \
|
| 31 |
28 |
|
&& dnf clean all
|
| 32 |
29 |
|
ENV CARGO_HOME=/build/cargo \
|
| 33 |
30 |
|
CARGO_TARGET_DIR=/build/target
|
| 34 |
|
- |
# ironbar and wl-screenrec are on crates.io; anyrun is git-only.
|
| 35 |
|
- |
RUN cargo install --locked --root /build/out ironbar && \
|
| 36 |
|
- |
cargo install --locked --root /build/out wl-screenrec && \
|
| 37 |
|
- |
cargo install --locked --root /build/out \
|
| 38 |
|
- |
--git https://github.com/anyrun-org/anyrun anyrun
|
| 39 |
|
- |
|
| 40 |
|
- |
# =====================================================================
|
| 41 |
|
- |
# gram-build: Zed fork (graphical editor)
|
| 42 |
|
- |
# =====================================================================
|
| 43 |
|
- |
# Heavier than the trio above (LLVM, wasm, vulkan headers), so its
|
| 44 |
|
- |
# own stage keeps rust-build fast when only the small crates change.
|
| 45 |
|
- |
# Source: codeberg.org/GramEditor/gram (GPLv3).
|
| 46 |
|
- |
FROM registry.fedoraproject.org/fedora:42 AS gram-build
|
| 47 |
|
- |
RUN dnf install -y \
|
| 48 |
|
- |
rust cargo git \
|
| 49 |
|
- |
gcc make cmake clang mold \
|
| 50 |
|
- |
pkgconf-pkg-config \
|
| 51 |
|
- |
wayland-devel libxkbcommon-devel \
|
| 52 |
|
- |
openssl-devel fontconfig-devel freetype-devel \
|
| 53 |
|
- |
alsa-lib-devel \
|
| 54 |
|
- |
vulkan-loader-devel vulkan-headers \
|
| 55 |
|
- |
&& dnf clean all
|
| 56 |
|
- |
ENV CARGO_HOME=/build/cargo \
|
| 57 |
|
- |
CARGO_TARGET_DIR=/build/target
|
| 58 |
|
- |
RUN git clone --depth 1 https://codeberg.org/GramEditor/gram /build/gram
|
| 59 |
|
- |
WORKDIR /build/gram
|
| 60 |
|
- |
RUN cargo build --release --locked --bin gram
|
|
31 |
+ |
# wl-screenrec is on crates.io.
|
|
32 |
+ |
RUN cargo install --locked --root /build/out wl-screenrec
|
| 61 |
33 |
|
|
| 62 |
34 |
|
# =====================================================================
|
| 63 |
35 |
|
# Runtime image — the bootable container itself.
|
| 108 |
80 |
|
# =====================================================================
|
| 109 |
81 |
|
RUN dnf install -y \
|
| 110 |
82 |
|
# Compositor and Wayland session (Fedora main)
|
| 111 |
|
- |
niri \
|
|
83 |
+ |
sway \
|
| 112 |
84 |
|
xdg-desktop-portal xdg-desktop-portal-gtk xdg-desktop-portal-gnome \
|
| 113 |
|
- |
# Bar, notifications, screenshot, wallpaper
|
|
85 |
+ |
# Notifications, screenshot annotate, wallpaper (bar = sway's built-in swaybar)
|
| 114 |
86 |
|
mako \
|
| 115 |
87 |
|
satty \
|
| 116 |
88 |
|
swww \
|
| 145 |
117 |
|
# Cursor, GTK theme
|
| 146 |
118 |
|
bibata-cursor-theme \
|
| 147 |
119 |
|
adw-gtk3-theme \
|
| 148 |
|
- |
# Screenshot region-select helper
|
| 149 |
|
- |
slurp \
|
|
120 |
+ |
# Screenshot capture + region-select (sway has no built-in grab)
|
|
121 |
+ |
grim slurp \
|
| 150 |
122 |
|
# Flatpak client (Flathub + Floorp/Rnote install at first boot)
|
| 151 |
123 |
|
flatpak \
|
| 152 |
124 |
|
# Font tools
|
| 153 |
125 |
|
unzip fontconfig \
|
| 154 |
|
- |
# Runtime libs for the cargo-built binaries copied in below:
|
| 155 |
|
- |
# ironbar → gtk4 + gtk4-layer-shell
|
| 156 |
|
- |
# anyrun → gtk3 + gtk-layer-shell
|
|
126 |
+ |
# Runtime libs for the cargo-built binary copied in below:
|
| 157 |
127 |
|
# wl-screenrec → ffmpeg-free + libdrm
|
| 158 |
|
- |
# gram → vulkan-loader + mesa-vulkan-drivers + fontconfig
|
| 159 |
|
- |
gtk3 gtk-layer-shell \
|
| 160 |
|
- |
gtk4 gtk4-layer-shell \
|
| 161 |
128 |
|
ffmpeg-free libdrm \
|
| 162 |
|
- |
vulkan-loader mesa-vulkan-drivers \
|
| 163 |
129 |
|
&& dnf clean all
|
| 164 |
130 |
|
|
| 165 |
131 |
|
# =====================================================================
|
| 186 |
152 |
|
# view of /usr/bin, which is what the atomic tooling expects for
|
| 187 |
153 |
|
# hand-installed binaries.
|
| 188 |
154 |
|
# =====================================================================
|
| 189 |
|
- |
COPY --from=rust-build /build/out/bin/ironbar /usr/local/bin/ironbar
|
| 190 |
|
- |
COPY --from=rust-build /build/out/bin/anyrun /usr/local/bin/anyrun
|
| 191 |
155 |
|
COPY --from=rust-build /build/out/bin/wl-screenrec /usr/local/bin/wl-screenrec
|
| 192 |
|
- |
COPY --from=gram-build /build/target/release/gram /usr/local/bin/gram
|
| 193 |
156 |
|
|
| 194 |
157 |
|
# =====================================================================
|
| 195 |
158 |
|
# Package removals — stock desktop pieces Alloy replaces
|