Update Dockerfile
Browse files- Dockerfile +1 -0
Dockerfile
CHANGED
@@ -13,6 +13,7 @@ WORKDIR /app
|
|
13 |
COPY --link ./ /app
|
14 |
RUN npm i
|
15 |
|
|
|
16 |
RUN chown 1000 /app
|
17 |
USER 1000
|
18 |
CMD ["node", "index.js"]
|
|
|
13 |
COPY --link ./ /app
|
14 |
RUN npm i
|
15 |
|
16 |
+
# The base image already creates a user with 1000, no need to call useradd
|
17 |
RUN chown 1000 /app
|
18 |
USER 1000
|
19 |
CMD ["node", "index.js"]
|