Docker file sections
- FROM
- WORKDIR
- COPY
- ADD
- RUN
- ENV
- EXPOSE
- USER
- CMD
- ENTRYPOIN
FROM
It specifies a base image and can be a bunch of files and directories, and we will create an image on top of it.
WORKDIR
it specifies the working directory, and all executing commands will be executed from this directory.
COPY
ADD
RUN
executing operating system commands
ENV
for setting environments variables
EXPOSE
for telling container to starter port
USER
specifying the user that should run the application; of course, the user who will run the application has limited privileges.