One of the 50 questions in this topic
How much do you know about Docker?The RUN statement executes commands during image construction and creates a new layer with the results. It is used to install packages, compile code, create users, etc. Each RUN creates an additional layer, so it is common to chain commands with && to minimize the number of layers.