I am trying to compile some sources using a makefile. In the makefile there is a bunch of commands that need to be ran as sudo.
sudo
When I compile the sour
This worked for me:
echo "myuser ALL=(ALL) NOPASSWD:ALL" >> /etc/sudoers
where your user is "myuser"
for a Docker image, that would just be:
RUN echo "myuser ALL=(ALL) NOPASSWD:ALL" >> /etc/sudoers