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

This commit is contained in:
ameerhamzakhan committed 2023-08-27 18:50:20 +08:00
1 parent 41d4f6f73f
commit 63476fa2eb
1 file changed
+3
+3
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