Added line in Dockerfile which allow non-root users to run sudo commands.
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
2023-08-27 18:50:20 +08:00
parent 41d4f6f73f
commit 63476fa2eb

View File

@@ -25,6 +25,9 @@ ENV LC_ALL en_US.UTF-8
ENV LANG en_US.UTF-8 ENV LANG en_US.UTF-8
RUN locale-gen en_US.UTF-8 RUN locale-gen en_US.UTF-8
# Allow non-root users to run sudo command without password.
RUN echo "ALL ALL=NOPASSWD:ALL" > /etc/sudoers.d/01-allow-sudo
COPY scripts/entrypoint.sh /entrypoint.sh COPY scripts/entrypoint.sh /entrypoint.sh
ENV LOG_FILE /dev/null ENV LOG_FILE /dev/null