devcontainer/Containerfile
Job79 e180de3a7b
All checks were successful
Container build / container-build (push) Successful in 4m52s
refactor: cleanup config
2024-12-12 20:42:39 +01:00

30 lines
1.1 KiB
Docker

# ========================================= #
# Containerfile v1.0; job79 #
# Configure and setup a neovim devcontainer #
# for go and nodejs development. #
# ========================================= #
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 --chown=user:user config/nvim/plugins /home/user/.config/nvim/lua/plugins
COPY --chown=user:user config/nvim/config/keymaps.lua /home/user/.config/nvim/lua/config/keymaps.lua
COPY --chown=user:user 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"]