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