diff --git a/Containerfile b/Containerfile index 05eb155..b5b839c 100644 --- a/Containerfile +++ b/Containerfile @@ -13,13 +13,22 @@ RUN dnf update -y && \ 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 +# 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 # create empty user dirs -COPY --chown=user:user config/bashrc .bashrc # copy config into container +RUN mkdir .config .local .cache + +# Copy config into container. +COPY --chown=user:user config/bashrc .bashrc # === setup container === -ENV TZ="Europe/Amsterdam" # set timezone inside container +# Set timezone inside container. +ENV TZ="Europe/Amsterdam" + VOLUME /home/user