feat: remove secproc group and copy start.sh separately

This commit is contained in:
Pallav Vasa 2025-05-23 11:59:44 +00:00
parent b0c6750585
commit 5483cf71bd

View File

@ -19,8 +19,7 @@ RUN pacman -Sy --noconfirm && \
# Create user/groups as per your script, with -l to avoid system user quirks
RUN groupadd -g $DEV_GID $DEV_USER && \
groupadd -g 2000 secproc && \
useradd -l -ms /bin/fish -G secproc -u $DEV_UID -g $DEV_GID $DEV_USER
useradd -l -ms /bin/fish -u $DEV_UID -g $DEV_GID $DEV_USER
# ────────────────────────
# Stage 2: Workspace Image
@ -36,6 +35,7 @@ ARG POD_UID=1002
# Use ADD for extracting archives
ADD home.tar.gz $DEV_HOME
COPY --chmod=755 start.sh $DEV_HOME/
# Prepare .ssh and known_hosts, and fix permissions only if dirs exist
RUN mkdir -p $DEV_HOME/.ssh && \