2 DL3004
Lukas Martinelli edited this page 2016-01-11 15:30:15 +01:00

Do not use sudo.

Problematic code:

FROM busybox
RUN sudo apt-get install

Correct code:

FROM busybox
RUN apt-get install

Rationale:

Do not use sudo as it leads to unpredictable behavior. Use a tool like gosu to enforce root.