sudo
DOK-DL3004Do not use sudo
as it leads to unpredictable behavior and possibly security vulnerabilities. Use a tool like gosu
to perform user switching operations.
FROM debian:buster
RUN sudo -u other_user some-command
# Install gosu somehow
RUN gosu other_user:other_group some-command