devcontainer/Containerfile
Job79 53cfeb1a62
All checks were successful
Container build / container-build (push) Successful in 3m21s
feat: update container on build
2024-09-29 11:31:49 +02:00

24 lines
811 B
Docker

FROM docker.io/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
# === 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 /home/user/.config/github-copilot
CMD ["bash"]