feat: remove secproc group and copy start.sh separately
This commit is contained in:
parent
b0c6750585
commit
5483cf71bd
@ -19,8 +19,7 @@ RUN pacman -Sy --noconfirm && \
|
|||||||
|
|
||||||
# Create user/groups as per your script, with -l to avoid system user quirks
|
# Create user/groups as per your script, with -l to avoid system user quirks
|
||||||
RUN groupadd -g $DEV_GID $DEV_USER && \
|
RUN groupadd -g $DEV_GID $DEV_USER && \
|
||||||
groupadd -g 2000 secproc && \
|
useradd -l -ms /bin/fish -u $DEV_UID -g $DEV_GID $DEV_USER
|
||||||
useradd -l -ms /bin/fish -G secproc -u $DEV_UID -g $DEV_GID $DEV_USER
|
|
||||||
|
|
||||||
# ────────────────────────
|
# ────────────────────────
|
||||||
# Stage 2: Workspace Image
|
# Stage 2: Workspace Image
|
||||||
@ -36,6 +35,7 @@ ARG POD_UID=1002
|
|||||||
|
|
||||||
# Use ADD for extracting archives
|
# Use ADD for extracting archives
|
||||||
ADD home.tar.gz $DEV_HOME
|
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
|
# Prepare .ssh and known_hosts, and fix permissions only if dirs exist
|
||||||
RUN mkdir -p $DEV_HOME/.ssh && \
|
RUN mkdir -p $DEV_HOME/.ssh && \
|
||||||
|
Loading…
x
Reference in New Issue
Block a user