Dockerfile Best practices (2) consolidation
In "Dockerfile Best practices (1)," we have learned about the use of common instructions in Dockerfile and give demonstration examples. This article will supplement and consolidate the common knowledge points in Dockerfile.
Dockerfile context (context)
When executing docker image build, CLI first informs the build of the size of the build context that will be sent to the Docker daemon, for example.
# cat > Dockerfile Dockerfile