Skip to content
This repository was archived by the owner on Jan 6, 2025. It is now read-only.

Commit ac52810

Browse files
committed
fix(docker): run as node user
1 parent bd274b2 commit ac52810

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

generator/template/Dockerfile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,6 @@ FROM node:alpine
22

33
EXPOSE 8080
44

5-
RUN apk add --no-cache nginx
6-
75
WORKDIR /usr/src/app
86

97
RUN npm install serve -g
@@ -16,4 +14,6 @@ COPY . .
1614

1715
RUN npm run build
1816

17+
USER node
18+
1919
CMD ["serve", "--single", "--port", "8080", "dist"]

0 commit comments

Comments
 (0)