You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Docker runs all commands as root user. This is a huge security issue, and should be avoided.
To fix it, we can modify the Dockerfiles to a format like this:
# run here all commands related to system wide installations, such as pecl packages.# setup non-root userRUN useradd --create-home appuser
WORKDIR /home/appuser
USER appuser
# run the rest of the commands as usual but without root access
The text was updated successfully, but these errors were encountered:
Docker runs all commands as root user. This is a huge security issue, and should be avoided.
To fix it, we can modify the Dockerfiles to a format like this:
The text was updated successfully, but these errors were encountered: