fix: permissions of /run directory
Some checks failed
Build containers / changes (push) Successful in 11s
Build containers / base-image (push) Failing after 6s
Build containers / dependent-images (go) (push) Has been skipped
Build containers / dependent-images (infra) (push) Has been skipped

This commit is contained in:
Job
2025-12-27 20:14:56 +01:00
parent d39934ada4
commit b0fcc6e4eb

View File

@@ -11,12 +11,13 @@ RUN dnf update -y && \
# === setup user === # === setup user ===
RUN useradd -ms /bin/bash user && \ RUN useradd -ms /bin/bash user && \
echo 'user ALL=NOPASSWD: ALL' > /etc/sudoers && \ echo 'user ALL=NOPASSWD: ALL' > /etc/sudoers && \
install -m 0700 -d -o user -g user /run/user/1000 /home/user/.config /home/user/.local /home/user/.cache mkdir -p /run/user/1000 && chown user:user /run/user/1000
USER user USER user
WORKDIR /home/user WORKDIR /home/user
RUN git clone https://git.plabble.org/Job79/neovim-config.git .config/nvim RUN mkdir .config .local .cache && \
git clone https://git.plabble.org/Job79/neovim-config.git .config/nvim
COPY --chown=user:user config/bashrc .bashrc COPY --chown=user:user config/bashrc .bashrc
COPY --chown=user:user config/git .config/git/config COPY --chown=user:user config/git .config/git/config
COPY config/bin /usr/local/bin COPY config/bin /usr/local/bin