mirror of https://github.com/docker/docs.git
commit
1070efb1b1
|
@ -158,7 +158,7 @@ COPY . .
|
||||||
CMD ["node", "app.js"]
|
CMD ["node", "app.js"]
|
||||||
```
|
```
|
||||||
|
|
||||||
With this Dockerfile, you can use `--build-arg` to override the default value of `ENV`:
|
With this Dockerfile, you can use `--build-arg` to override the default value of `NODE_ENV`:
|
||||||
|
|
||||||
```console
|
```console
|
||||||
$ docker build --build-arg NODE_ENV=development .
|
$ docker build --build-arg NODE_ENV=development .
|
||||||
|
|
Loading…
Reference in New Issue