Files
devcontainer/containers/base/Containerfile
Job79 7c1a97f9df
Some checks failed
Build containers / changes (push) Successful in 3s
Build containers / base-image (push) Successful in 1m10s
Build containers / dependent-images (go) (push) Successful in 31s
Build containers / dependent-images (infra) (push) Failing after 27s
Build containers / dependent-images (php) (push) Successful in 30s
refactor: shrink container build
2026-03-17 20:50:31 +01:00

31 lines
927 B
Docker

FROM quay.io/fedora/fedora:44
# === install system packages ===
RUN --mount=type=cache,id=dnf-cache,target=/var/cache/libdnf5 \
dnf update -y && \
dnf copr enable -y gierth/tools-golang && \
dnf copr enable -y agriffis/neovim-nightly && \
dnf -y --setopt=keepcache=1 --setopt=install_weak_deps=False install \
bash-completion git fzf curl awk jq unzip \
host-spawn dbus-launch \
npm neovim wl-copy lazygit lazydocker lazysql
COPY config/bin /usr/local/bin
# === setup user ===
RUN useradd -ms /bin/bash user && \
echo 'user ALL=(ALL) NOPASSWD: ALL' > /etc/sudoers.d/user && \
mkdir -p /run/user/1000 && \
chown user:user /run/user/1000
USER user
WORKDIR /home/user
RUN mkdir -p .config .local .cache && \
git clone https://git.plabble.org/Job79/neovim-config.git .config/nvim
COPY --chown=user:user config/bashrc .bashrc
COPY --chown=user:user config/git .config/git/config
VOLUME /home/user