diff --git a/build/Dockerfile b/build/Dockerfile index d375e41..dc1a5ab 100644 --- a/build/Dockerfile +++ b/build/Dockerfile @@ -102,4 +102,6 @@ RUN useradd --groups sudo --create-home --shell /bin/bash $USER \ && echo "${USER} ALL=(ALL) NOPASSWD:ALL" >/etc/sudoers.d/${USER} \ && chmod 0440 /etc/sudoers.d/${USER} +RUN rm -rf ${WORKDIR}/* + USER ${USER} diff --git a/build/start.sh b/build/start.sh index ce98859..b225493 100644 --- a/build/start.sh +++ b/build/start.sh @@ -7,8 +7,6 @@ cd $WORKDIR sudo chown -R $USER:$USER /var/www/html sudo chown -R $USER:$USER /home/$USER -sudo rm -rf $WORKDIR/* - if [ ! -z "$WWWUSER" ]; then sudo usermod -u $WWWUSER $USER fi