Skip to content

Commit

Permalink
node user
Browse files Browse the repository at this point in the history
  • Loading branch information
ivankatliarchuk committed Aug 5, 2020
1 parent 5c94ac1 commit e081204
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions nodejs/12/app/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,7 @@ LABEL vendor="cloud kats" \
org.opencontainers.image.context="app"

ENV PACKAGES "git bash tini zip"

USER root
RUN whoami

RUN mkdir -p /app

Expand All @@ -29,3 +28,5 @@ RUN apk add --no-cache $PACKAGES \
&& npm i -g env-cmd \
&& rm -rf /var/lib/apt/lists/* \
&& rm -rf /var/cache/apk/*

USER node

0 comments on commit e081204

Please sign in to comment.