feat: build multiple image

This commit is contained in:
Job
2025-08-27 17:06:47 +02:00
parent fee028121c
commit 2ee75a2f91
15 changed files with 102 additions and 80 deletions

View File

@@ -1,35 +0,0 @@
# ========================================= #
# 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 procps ping bash-completion \
host-spawn dbus-launch zoxide \
neovim awk jq unzip fd-find chafa lazygit \
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
COPY config/bin /usr/local/bin
# === setup container ===
# Set timezone inside container.
ENV TZ="Europe/Amsterdam"
VOLUME /home/user