Files
devcontainer/Containerfile
2025-03-24 20:52:29 +01:00

34 lines
992 B
Docker

# ========================================= #
# Containerfile v1.0; job79 #
# Configure and setup a neovim devcontainer #
# for go and nodejs development. #
# ========================================= #
FROM quay.io/fedora/fedora:42
# === setup system ===
RUN dnf update -y && \
dnf copr enable -y atim/lazygit && \
dnf -y install neovim unzip awk \
bash-completion zoxide fd-find chafa lazygit procps \
git go npm
# === setup container user ===
# Setup passwordless sudo.
RUN useradd -ms /bin/bash user && usermod -aG wheel user && sed -i '/NOPASSWD/s/^#//g' /etc/sudoers
# Create empty /run/user/1000 dir for mounting sockets.
RUN mkdir /run/user/1000 && chown user:user /run/user/1000
# Setup container user.
USER user
WORKDIR /home/user
RUN mkdir .config .local .cache
# Copy config into container.
COPY --chown=user:user config/bashrc .bashrc
# === setup container ===
# Set timezone inside container.
ENV TZ="Europe/Amsterdam"
VOLUME /home/user