+14
-4
@@ -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
|
||||
|
||||
|
||||
@@ -22,4 +22,4 @@ alias ga="git add -A"
|
||||
alias gf="git fetch"
|
||||
alias gp="git pull"
|
||||
alias gpp="git push"
|
||||
alias gs="git status"
|
||||
alias gs="git status"
|
||||
|
||||
Reference in New Issue
Block a user