Disabled password and sudo for appuser user

This commit is contained in:
Heiko Joerg Schick
2023-09-08 09:34:51 +02:00
parent 695c8d1c22
commit 696d81f49a
+2 -2
View File
@@ -48,8 +48,8 @@ ARG UID=10001
# DEBUG. Only for debug purposes. # DEBUG. Only for debug purposes.
RUN useradd -r -u ${UID} -s /sbin/nologin -d /nonexistent appuser RUN useradd -r -u ${UID} -s /sbin/nologin -d /nonexistent appuser
RUN echo "appuser:12345678" | chpasswd # RUN echo "appuser:12345678" | chpasswd
RUN echo 'appuser ALL=(ALL) NOPASSWD:ALL' | tee -a /etc/sudoers # RUN echo 'appuser ALL=(ALL) NOPASSWD:ALL' | tee -a /etc/sudoers
# Upgrade pip # Upgrade pip
RUN python -m pip install --upgrade pip RUN python -m pip install --upgrade pip