- Dockerfile commands
RUN
= during build time, run commands and save the resultENTRYPOINT
= during run time- make the container act as an executable, commands given by CLI are treated as arguments to this executable
CMD
= during run time- execute a default command if no command given by CLI
- if there is an
ENTRYPOINT
, this will instead set default arguments, which can be overridden by CLI - think of
CMD
as default arguments to thedocker run
command