File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -52,15 +52,13 @@ RUN curl -L -o /usr/local/bin/mc https://dl.min.io/client/mc/release/linux-amd64
5252 chmod +x /usr/local/bin/mc
5353
5454# Create non-root user with specific UID/GID
55- RUN addgroup --gid 1001 dev && \
56- adduser --uid 1001 --ingroup dev --shell /bin/bash --home /home/ dev --disabled-password dev && \
55+ RUN groupadd -g 1001 dev && \
56+ useradd -m -d /home/ dev -s /bin/bash -g dev -u 1001 dev && \
5757 echo "dev ALL=(ALL) NOPASSWD:ALL" >> /etc/sudoers
5858
5959# Adjust permissions for /usr/local and home directories
6060RUN chown -R dev:dev /usr/local /home/dev
6161
62- RUN echo "+:dev:ALL" >> /etc/security/access.conf && touch /etc/nologin
63-
6462# Switch to non-root user
6563USER dev
6664
Original file line number Diff line number Diff line change 88 PermitRootLogin no
99 PasswordAuthentication yes
1010 ChallengeResponseAuthentication no
11- UsePrivilegeSeparation no
1211 UsePAM yes
1312 X11Forwarding yes
1413 PrintMotd no
Original file line number Diff line number Diff line change 11replicaCount : 1
22
33image :
4- source : ghcr.io/syntax3rror404/k8s-devmachine@sha256:d0917c569a0ac6267cb7bc18a0d950dc97afaaf495f799637394a682be81e95e
4+ source : ghcr.io/syntax3rror404/k8s-devmachine@sha256:9e166d8c10c7f2c27c17027f4363a5862eb4241c8ebb5661b30845b0fc6d2bfd
55 pullPolicy : IfNotPresent
66
77service :
You can’t perform that action at this time.
0 commit comments