Dockerfile FROM does
Required. Indicates the base image to start from.
Docker ENV
Sets environmental variables. Often includes the version in the image
Dockerfile processing order
Every command adds an image layer on top, so order matters!
Dockerfile RUN
Includes CLI commands to run
Use && syntax to add commands without adding a layer
Dockerfile EXPOSE
The ports that should be open
CMD
Required, the final command that runs when starting the container.
WORKDIR
Sets the working directory
Preferred to RUN cd /path/
COPY
Transfers a local file to the location
Are ENVs inherited from upstream images?
No.