fix(Containerfile): placement of comments

This commit is contained in:
Job
2025-01-25 16:12:22 +01:00
parent b6efe55600
commit a0a383051f

View File

@@ -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