Fixes
Build container / build (push) Failing after 22s

This commit is contained in:
maurice
2026-09-07 18:09:26 +02:00
parent ef1eef1674
commit ddaaa4601e
3 changed files with 19 additions and 18 deletions
+14 -4
View File
@@ -4,8 +4,10 @@ FROM quay.io/fedora/fedora:44
RUN --mount=type=cache,id=dnf-cache,target=/var/cache/libdnf5 \
dnf update -y && \
dnf -y --setopt=keepcache=1 --setopt=install_weak_deps=False install \
bash-completion git-core curl awk jq rg zip unzip which \
host-spawn wl-copy gcc helix helix-themes rsync python3 python3-pip dotnet-sdk-10.0 openssl-devel
bash-completion git-core curl awk jq rg zip unzip which ncurses \
host-spawn wl-copy gcc helix helix-themes rsync python3 python3-pip dotnet-sdk-10.0 openssl-devel \
alsa-lib-devel \ # Neginoth-project
# === setup user ===
RUN useradd -ms /bin/bash user && \
@@ -45,7 +47,8 @@ RUN export RUSTUP_HOME=/usr/local/rust && \
ln -sf /usr/local/rust/bin/rustfmt /usr/local/bin/rustfmt && \
ln -sf /usr/local/rust/bin/clippy /usr/local/bin/clippy && \
ln -sf /usr/local/rust/bin/rust-analyzer /usr/local/bin/rust-analyzer && \
rustup component add rustfmt clippy rust-analyzer && \
rustup component add rustfmt clippy rust-analyzer rust-src && \
rustup target add wasm32-unknown-unknown && \
curl https://drager.github.io/wasm-pack/installer/init.sh -sSf | sh
# cargo install cargo-generate && \
# cargo install cargo-expand
@@ -88,6 +91,13 @@ RUN --mount=type=cache,id=dnf-cache,target=/var/cache/libdnf5 \
# === install language servers, tools ===
RUN deno i -g -f -A --root /usr/local/bin npm:npm npm:bash-language-server npm:vscode-langservers-extracted npm:dockerfile-language-server-nodejs \
npm:typescript npm:typescript-language-server
RUN mkdir -p /usr/local/bin/python-bins/code-review-graph && \
pip install code-review-graph --target /usr/local/bin/python-bins/code-review-graph && \
ln -sf /usr/local/bin/python-bins/code-review-graph/bin/code-review-graph /usr/local/bin/code-review-graph
# Ownership
RUN chown -R user:user /usr/local/rust
USER user
WORKDIR /home/user
@@ -100,7 +110,7 @@ COPY --chown=user:user config/helix/ .config/helix/
# === Cleanup build dependencies ===
USER root
RUN dnf remove -y openssl-devel && dnf clean all && \
rm -rf /tmp/* && rm -rf /root/*
rm -rf /tmp/* && rm -rf /root/* && pip cache purge
USER user