Skip to content
This repository has been archived by the owner on Jul 1, 2023. It is now read-only.

Commit

Permalink
Differentiate between args and environment variables in example (#42)
Browse files Browse the repository at this point in the history
  • Loading branch information
erikmartino authored Mar 24, 2020
1 parent 79a2db3 commit a4837a9
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion docker.md
Original file line number Diff line number Diff line change
Expand Up @@ -565,7 +565,7 @@ We can supply build arguments as flags to `docker build` as we already did to th
```bash
$ cd docker/busybox-arg
$ docker build --build-arg=BUILD1="Alice and Bob" -t hello:v5 .
$ docker build --build-arg=ARG1="Alice and Bob" -t hello:v5 .
$ docker run hello:v5
hello, Alice and Bob!
```
Expand Down
6 changes: 3 additions & 3 deletions docker/busybox-arg/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
FROM busybox
ADD hello.sh /hello.sh
ARG BUILD1
ENV BUILD1 $BUILD1
ENTRYPOINT ["/hello.sh"]
ARG ARG1
ENV BUILD1 $ARG1
ENTRYPOINT ["/hello.sh"]

0 comments on commit a4837a9

Please sign in to comment.