Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Expand .dockerignore explanation
  • Loading branch information
tpreusse authored Nov 13, 2016
commit 105c5bb79aad954244100c97ca322a61099c7205
6 changes: 5 additions & 1 deletion locale/en/docs/guides/nodejs-docker-webapp.md
Original file line number Diff line number Diff line change
Expand Up @@ -147,13 +147,17 @@ CMD [ "npm", "start" ]

## .dockerignore file

Prevent your local modules and debug log from being copied into your Docker image:
Create a `.dockerignore` file in the same directory as your `Dockerfile`
with following content:

```
node_modules
npm-debug.log
```

This will prevent your local modules and debug logs from being copied onto your
Docker image and possibly overwriting modules installed within your image.

## Building your image

Go to the directory that has your `Dockerfile` and run the following command to
Expand Down