Get the App
SLTechnology News&Howtos  ›  Servers  › 

Dockerfile Best practices (2) consolidation

Shulou Source: shulou.com Published: 2022-06-03 03:51:10 09月28日 Update

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

Tags: Instructions parameters containers mirrors commands examples runs files up and down context methods source files users processes presentations logs formats paths such as figure copy Apple Docker Huawei Linux macOS MariaDB Microsoft MySQL NVidia OPPO Reno MariaDB Microsoft Xiaomi MySQL Shulou Technology