Disabled password and sudo for appuser user
This commit is contained in:
+2
-2
@@ -48,8 +48,8 @@ ARG UID=10001
|
||||
|
||||
# DEBUG. Only for debug purposes.
|
||||
RUN useradd -r -u ${UID} -s /sbin/nologin -d /nonexistent appuser
|
||||
RUN echo "appuser:12345678" | chpasswd
|
||||
RUN echo 'appuser ALL=(ALL) NOPASSWD:ALL' | tee -a /etc/sudoers
|
||||
# RUN echo "appuser:12345678" | chpasswd
|
||||
# RUN echo 'appuser ALL=(ALL) NOPASSWD:ALL' | tee -a /etc/sudoers
|
||||
|
||||
# Upgrade pip
|
||||
RUN python -m pip install --upgrade pip
|
||||
|
||||
Reference in New Issue
Block a user