Dockerfile restructered real user node now
This commit is contained in:
parent
c19591b4aa
commit
8e30fcf213
@ -1,11 +1,9 @@
|
|||||||
FROM node:16
|
FROM node:16
|
||||||
RUN adduser node root
|
USER node
|
||||||
WORKDIR /home/node/app
|
WORKDIR /home/node/app
|
||||||
RUN chmod -R 775 /home/node/app
|
COPY --chown=node:node package*.json ./
|
||||||
RUN chown -R node:root /home/node/app
|
COPY --chown=node:node . .
|
||||||
COPY package*.json /home/node/app
|
|
||||||
RUN npm install
|
RUN npm install
|
||||||
COPY . /home/node/app
|
|
||||||
RUN npm run build
|
RUN npm run build
|
||||||
RUN npm run build:fontawesome
|
RUN npm run build:fontawesome
|
||||||
EXPOSE 5000
|
EXPOSE 5000
|
||||||
|
Reference in New Issue
Block a user