Description :
ADD vs COPY
- ADD allows copying from the URL
- ADD allows tar file auto-extraction
ARG vs ENV
- ARG is used to set build-time variables with key and value.
- ARG variables will not be available when the container is running.
CMD vs ENTRYPOINT
- CMD is used to execute a command in a running container.
- There can be only one CMD
- Specifies the commands that will execute when the Docker container starts.
Example :
2025 Feb