Docker: Dockerfile

The Dockerfile contains the instructions for building an image. In general, a Dockerfile has the following Key elements-

ADD
CMD
COPY
ENDPOINT
ENV
EXPOSE
FROM
RUN
USER
WORKDIR

** These key elements are not always present. A Dockerfile might contain some other instructions for an efficient image creation and according to the requirement.

Leave a Comment


The reCAPTCHA verification period has expired. Please reload the page.