devcontainer/Containerfile
Job79 a8ee5a8ee1
Some checks failed
Container build / container-build (push) Failing after 1m54s
build(Containerfile): switch to quay image
2024-10-14 19:32:57 +02:00

25 lines
838 B
Docker

FROM quay.io/fedora/fedora:41
# === setup system ===
RUN dnf update -y && dnf -y install neovim unzip \
bash-completion zoxide fd-find procps \
git go npm
# === setup container user ===
RUN useradd -ms /bin/bash user && usermod -aG wheel user && sed -i '/NOPASSWD/s/^#//g' /etc/sudoers
USER user
WORKDIR /home/user
COPY config/user/bashrc /home/user/.bashrc
COPY config/user/profile /home/user/.bash_profile
# === setup neovim ===
RUN git clone --depth 1 https://github.com/LazyVim/starter ~/.config/nvim
COPY config/nvim/plugins /home/user/.config/nvim/lua/plugins
COPY config/nvim/config/options.lua /home/user/.config/nvim/lua/config/options.lua
COPY config/nvim/lazyvim.json /home/user/.config/nvim/lazyvim.json
# === setup container ===
ENV TZ="Europe/Amsterdam"
VOLUME /home/user/.local /home/user/.cache
CMD ["bash", "-l"]