Como funciona a construção com Dockerfile
Cache
$ docker build -t ubuntu-curl .
[+] Building 0.1s (7/7) FINISHED docker:default
=> [internal] load build definition from Dockerfile 0.0s
=> => transferring dockerfile: 168B 0.0s
=> [internal] load metadata for docker.io/library/ubuntu:latest 0.0s
=> [internal] load .dockerignore 0.0s
=> => transferring context: 2B 0.0s
=> [1/3] FROM docker.io/library/ubuntu:latest 0.0s
=> CACHED [2/3] RUN apt update 0.0s
=> CACHED [3/3] RUN apt install curl --yes 0.0s
=> exporting to image 0.0s
=> => exporting layers 0.0s
=> => writing image sha256:f2f94ab20606290538d1b03c3b2cca78f6907eb47487c5f
a8ed63fe4bbf16725 0.0s
=> => naming to docker.io/library/ubuntu-curl 0.0s => CACHED [2/3] RUN apt update 0.0s
=> CACHED [3/3] RUN apt install curl --yes 0.0s
--no-cache
Mais instruções abaixo

Mais instruções no meio
Armadilhas
Last updated