2024-09-17 18:32:24 +00:00
|
|
|
FROM docker.io/fedora:41
|
|
|
|
|
|
|
|
# === setup system ===
|
2024-09-28 18:05:30 +00:00
|
|
|
RUN 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
|
|
|
|
USER user
|
|
|
|
WORKDIR /home/user
|
|
|
|
COPY config/user/bashrc /home/user/.bashrc
|
|
|
|
|
|
|
|
# === setup neovim ===
|
2024-09-23 17:56:52 +00:00
|
|
|
RUN git clone --depth 1 https://github.com/LazyVim/starter ~/.config/nvim
|
|
|
|
COPY config/nvim/plugins /home/user/.config/nvim/lua/plugins
|
2024-09-28 15:56:33 +00:00
|
|
|
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"
|
2024-09-28 18:05:30 +00:00
|
|
|
VOLUME /home/user/.local /home/user/.config/github-copilot
|
2024-09-28 15:56:33 +00:00
|
|
|
CMD ["bash"]
|