2024-12-12 19:42:39 +00:00
|
|
|
# ========================================= #
|
|
|
|
# Containerfile v1.0; job79 #
|
|
|
|
# Configure and setup a neovim devcontainer #
|
|
|
|
# for go and nodejs development. #
|
|
|
|
# ========================================= #
|
2024-10-14 17:32:57 +00:00
|
|
|
FROM quay.io/fedora/fedora:41
|
2024-09-17 18:32:24 +00:00
|
|
|
|
|
|
|
# === setup system ===
|
2024-09-29 09:30:36 +00:00
|
|
|
RUN dnf update -y && dnf -y install neovim unzip \
|
2024-09-23 17:56:52 +00:00
|
|
|
bash-completion zoxide fd-find procps \
|
|
|
|
git go npm
|
2024-09-17 18:32:24 +00:00
|
|
|
|
|
|
|
# === setup container user ===
|
|
|
|
RUN useradd -ms /bin/bash user && usermod -aG wheel user && sed -i '/NOPASSWD/s/^#//g' /etc/sudoers
|
2024-12-13 19:21:31 +00:00
|
|
|
RUN mkdir /run/user/1000 && chown user:user /run/user/1000
|
2024-09-17 18:32:24 +00:00
|
|
|
USER user
|
|
|
|
WORKDIR /home/user
|
|
|
|
COPY config/user/bashrc /home/user/.bashrc
|
2024-09-29 14:48:19 +00:00
|
|
|
COPY config/user/profile /home/user/.bash_profile
|
2024-09-17 18:32:24 +00:00
|
|
|
|
|
|
|
# === setup neovim ===
|
2024-09-23 17:56:52 +00:00
|
|
|
RUN git clone --depth 1 https://github.com/LazyVim/starter ~/.config/nvim
|
2024-10-14 18:06:29 +00:00
|
|
|
COPY --chown=user:user config/nvim/plugins /home/user/.config/nvim/lua/plugins
|
2024-12-13 19:21:57 +00:00
|
|
|
COPY --chown=user:user config/nvim/config /home/user/.config/nvim/lua/config
|
2024-10-14 18:06:29 +00:00
|
|
|
COPY --chown=user:user config/nvim/lazyvim.json /home/user/.config/nvim/lazyvim.json
|
2024-09-28 15:56:33 +00:00
|
|
|
|
|
|
|
# === setup container ===
|
|
|
|
ENV TZ="Europe/Amsterdam"
|
2024-09-29 14:48:19 +00:00
|
|
|
VOLUME /home/user/.local /home/user/.cache
|