Upgrade & Secure Your Future with DevOps, SRE, DevSecOps, MLOps!
We spend hours on Instagram and YouTube and waste money on coffee and fast food, but won’t spend 30 minutes a day learning skills to boost our careers.
Master in DevOps, SRE, DevSecOps & MLOps!
Learn from Guru Rajesh Kumar and double your salary in just one year.
There are multiple INSTRUCTIONS that are available in Dockerfile, some of these include:
From :The FROM instruction specifies the Base Image from which you are building.
RUN: In this we can run our commands for installing the packages
ADD: This instruction will give the output of converting tar file in to normal file and it will add in to that particular directory.
COPY: This instruction will give the output of copying the content and nothing will do more than that in the docker instruction. This instruction will give you the result of moving files.
EXPOSE: The EXPOSE instruction informs Docker that the container listens on the specified network ports at runtime.
WORKDIR: The WORKDIR instruction sets the working directory for any RUN, CMD, ENTRYPOINT, COPY and ADD instructions that follow it in the Dockerfile.The WORKDIR instruction can be used multiple times in a Dockerfile.