Add argument --build-args in docker
Add --build-args argument in docker CLI. https://docs.docker.com/engine/reference/commandline/build/#set-build-time-variables---build-arg
This commit is contained in:
parent
4da6b9adbe
commit
86b951267b
|
@ -12,6 +12,7 @@ Manage images
|
||||||
```yml
|
```yml
|
||||||
docker build [options] .
|
docker build [options] .
|
||||||
-t "app/container_name" # name
|
-t "app/container_name" # name
|
||||||
|
--build-arg APP_HOME=$APP_HOME # Set build-time variables
|
||||||
```
|
```
|
||||||
|
|
||||||
Create an `image` from a Dockerfile.
|
Create an `image` from a Dockerfile.
|
||||||
|
|
Loading…
Reference in New Issue