RUN executes commands in a shell inside the image during the build and commits the result as a new layer.
Example:
RUN apt-get update && apt-get install -y nginx
Combine related commands into a single RUN to reduce layer count.
Andrew Dorokhov
schedule
1 min read
RUN executes commands in a shell inside the image during the build and commits the result as a new layer.
Example:
RUN apt-get update && apt-get install -y nginx
Combine related commands into a single RUN to reduce layer count.
Happy to help — reach out via the contacts or go straight to my Upwork profile.
work View Upwork Profile arrow_forward