sector-f-linux

Sector F Linux
git clone https://git.sectorflabs.com/sector-f-linux.git
Log | Files | Refs | README | LICENSE

builder.Containerfile (1973B)


      1 # The Patina desktop's build environment: Fedora 45, as the image is, with
      2 # rustup's Rust and what patina-desktop's `make deps` lists, plus what its
      3 # packaging/deb/build.py needs to lay the bundle out (python3, make, git).
      4 # desktop/build.sh runs `build.py --stage` in it and the image copies the tree
      5 # in, so the image gets exactly what `make install-full` puts in place: every
      6 # binary and app, the default apps list, session entry, portal and PAM config.
      7 # Follows the fedora:45 tag, so it stays buildable when Fedora rebuilds the image.
      8 #
      9 # Rust comes from rustup, pinned, so builds repeat: patina-desktop's lockfile
     10 # needs 1.95. Raise RUST_VERSION when the lockfile asks for more.
     11 FROM quay.io/fedora/fedora:45
     12 
     13 ARG RUST_VERSION=1.95.0
     14 
     15 RUN dnf -y --setopt=install_weak_deps=False install \
     16         ca-certificates curl git make gcc gcc-c++ pkgconf-pkg-config python3 binutils \
     17         cmake clang clang-devel glslc \
     18         libxkbcommon-devel pixman-devel systemd-devel libinput-devel libseat-devel \
     19         mesa-libgbm-devel mesa-libEGL-devel libdrm-devel wayland-devel pam-devel \
     20         alsa-lib-devel vulkan-loader-devel vulkan-headers webkitgtk6.0-devel \
     21         openssl-devel fontconfig-devel sqlite-devel libsoup3-devel mpv-devel && \
     22     dnf clean all
     23 
     24 # System-wide, so the build can run as an ordinary user (build.sh gives it its
     25 # own CARGO_HOME and cache folders as volumes; the toolchain stays here).
     26 ENV RUSTUP_HOME=/usr/local/rustup \
     27     PATH=/usr/local/cargo/bin:$PATH
     28 RUN curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | \
     29         CARGO_HOME=/usr/local/cargo sh -s -- -y --profile minimal \
     30             --default-toolchain "$RUST_VERSION" --no-modify-path && \
     31     chmod -R a+rX /usr/local/rustup /usr/local/cargo
     32 
     33 # Mount points for the volumes build.sh attaches (cargo's downloads, the
     34 # bundle build's work folder). A new volume takes its owner and mode from here,
     35 # and the build is not root.
     36 RUN mkdir -m 1777 /cargo /cache