Update Dockerfile
This commit is contained in:
parent
534772ac9d
commit
c4e50d5aa2
1 changed files with 2 additions and 1 deletions
|
@ -8,7 +8,8 @@ RUN apk add --no-cache python3 make build-base \
|
|||
|
||||
FROM node:alpine as runner
|
||||
WORKDIR /usr/src/app
|
||||
COPY --chown node:node --from=builder /usr/src/app .
|
||||
COPY --from=builder /usr/src/app/node_modules ./node_modules
|
||||
COPY --from=builder --chown node:node /usr/src/app ./
|
||||
|
||||
USER node
|
||||
CMD ["node", "run", "start"]
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue