You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/BestPractices.md
+7Lines changed: 7 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -23,6 +23,13 @@ FROM node:4.1.2-onbuild
23
23
RUN groupadd -r node && useradd -r -g node node
24
24
```
25
25
26
+
When using the `alpine` variant, add the user like so:
27
+
28
+
```Dockerfile
29
+
FROM node:7.3.0-alpine
30
+
RUN addgroup -S node && adduser -S -g node node
31
+
```
32
+
26
33
## Memory
27
34
28
35
By default, any Docker Container may consume as much of the hardware such as CPU and RAM. If you are running multiple containers on the same host you should limit how much memory they can consume.
0 commit comments