DOCKERFILE-1:
FROM node:latest
WORKDIR /app
COPY ..
npm install
EXPOSE 3000
CMD ["node", "index.js"]
DOCKERFILE-2:
FROM node:latest
WORKDIR /app
npm install
COPY ..
EXPOSE 3000
CMD ["node", "index.js"]
How these two docker files are different? When i build the docker file, except CMD step everything will be executed, but how both are different?
How these two docker files are different? When i build the docker file, except CMD step everything will be executed, but how both are different?
New contributor
santhosh papisetty is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.