Updated Dockerfile with user context.
This commit is contained in:
parent
bd413efbfb
commit
c259926855
|
@ -10,4 +10,8 @@ RUN npm install
|
||||||
# Bundle app source
|
# Bundle app source
|
||||||
COPY . .
|
COPY . .
|
||||||
|
|
||||||
|
RUN addgroup -S app -g 50000 && \
|
||||||
|
adduser -S -g app -u 50000 app
|
||||||
|
USER app
|
||||||
|
|
||||||
ENTRYPOINT [ "node", "server.js" ]
|
ENTRYPOINT [ "node", "server.js" ]
|
||||||
|
|
Loading…
Reference in New Issue