Skip to content

Commit

Permalink
Give explicit name for multi-stage Dockerfile
Browse files Browse the repository at this point in the history
  • Loading branch information
johnne committed Nov 15, 2024
1 parent 9365c3b commit 61d1b4a
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion pages/containers.qmd
Original file line number Diff line number Diff line change
Expand Up @@ -1075,7 +1075,8 @@ there's a `COPY` statement just after: this is the directive that copies files
from the `build` stage into the current stage. We only copy the Python
environment itself, not the base environment nor the Conda installation.

- Copy the code above into _e.g._ `my_docker_multi` and build it.
- Copy the code above into a file called `multi.Dockerfile` and build it with
`docker build -f multi.Dockerfile -t my_docker_multi`.

- List your docker images with `docker image ls` and compare the newly created
`my_docker_multi` with `my_docker_base`.
Expand Down

0 comments on commit 61d1b4a

Please sign in to comment.