Skip to content

Instantly share code, notes, and snippets.

@hakaneroztekin
Last active June 12, 2022 11:31
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save hakaneroztekin/48e4a15d0dd1f2848dea36c255c2efe9 to your computer and use it in GitHub Desktop.
Save hakaneroztekin/48e4a15d0dd1f2848dea36c255c2efe9 to your computer and use it in GitHub Desktop.
docker build [docker in a nutshell]
$ docker build -t my-awesome-app .
[+] Building 0.2s (8/8) FINISHED
=> [internal] load build definition from Dockerfile
=> => transferring dockerfile: 37B
=> [internal] load .dockerignore
=> => transferring context: 2B
=> [internal] load metadata for docker.io/library/ubuntu:latest
=> [internal] load build context
=> => transferring context: 69B
=> [1/3] FROM docker.io/library/ubuntu
=> [2/3] COPY /src /my-app
=> [3/3] WORKDIR /my-app
=> exporting to image
=> => exporting layers
=> => writing image sha256:0bca1ba2ac5b5574c9bba301e02ee94337806aef21b763253c101f40e1d0ec5f
=> => naming to docker.io/library/my-awesome-app
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment