Docker diff between CMD,RUN and ENTRYPOINT
In Docker, ENTRYPOINT , RUN , and CMD are instructions used in a Dockerfile to define the behavior of the container. Each serves a different purpose: RUN Purpose : RUN is used to execute commands during the build process of the Docker image. Usage : It installs software packages, sets up the environment, and performs any necessary configuration. The commands executed with RUN are not preserved after the image is built; they contribute to the layers of the final image. Example : FROM ubuntu:latest RUN apt-get update && apt-get install -y curl CMD Purpose : CMD specifies...