List of dockerfile instructions and its Brief Summary?

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.

Subscribe
Notify of
guest

This site uses Akismet to reduce spam. Learn how your comment data is processed.

0 Comments
Inline Feedbacks
View all comments
0
Would love your thoughts, please comment.x
()
x