Skip to content

Commit d84f90c

Browse files
author
Joan-Diego Rodriguez
authored
Update README.md
Mentioned of npm_modules in .dockerignore when using onbuild image
1 parent 8e1370e commit d84f90c

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

README.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,12 @@ The image assumes that your application has a file named
4242
dependencies and defining its [start
4343
script](https://docs.npmjs.com/misc/scripts#default-values).
4444

45+
It also assumes that you have a file named [`.dockerignore`](https://docs.docker.com/engine/reference/builder/#/dockerignore-file) otherwise it will copy your local npm modules:
46+
47+
```
48+
npm_modules
49+
```
50+
4551
We have assembled a [Best Practices Guide](./docs/BestPractices.md) for those using these images on a daily basis.
4652

4753
## Run a single Node.js script

0 commit comments

Comments
 (0)