Skip to content

Commit

Permalink
fix(docker): run as node user
Browse files Browse the repository at this point in the history
  • Loading branch information
herrmannplatz committed Mar 5, 2018
1 parent bd274b2 commit ac52810
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions generator/template/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,6 @@ FROM node:alpine

EXPOSE 8080

RUN apk add --no-cache nginx

WORKDIR /usr/src/app

RUN npm install serve -g
Expand All @@ -16,4 +14,6 @@ COPY . .

RUN npm run build

USER node

CMD ["serve", "--single", "--port", "8080", "dist"]

0 comments on commit ac52810

Please sign in to comment.