26 lines
982 B
Docker
26 lines
982 B
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 copr enable -y atim/lazygit && \
|
|
dnf -y install neovim unzip \
|
|
bash-completion zoxide fd-find chafa lazygit procps \
|
|
git go npm
|
|
|
|
# === setup container user ===
|
|
RUN useradd -ms /bin/bash user && usermod -aG wheel user && sed -i '/NOPASSWD/s/^#//g' /etc/sudoers # setup passwordless sudo
|
|
RUN mkdir /run/user/1000 && chown user:user /run/user/1000 # create empty /run/user/1000 dir for mounting sockets
|
|
USER user
|
|
WORKDIR /home/user
|
|
RUN mkdir .config .local .cache # create empty user dirs
|
|
COPY --chown=user:user config/bashrc .bashrc # copy config into container
|
|
|
|
# === setup container ===
|
|
ENV TZ="Europe/Amsterdam" # set timezone inside container
|
|
VOLUME /home/user
|