parent
7b27079410
commit
d4124fe620
@ -2,7 +2,7 @@ FROM node:lts-alpine
|
|||||||
ENV NODE_ENV=production
|
ENV NODE_ENV=production
|
||||||
WORKDIR /usr/src/app
|
WORKDIR /usr/src/app
|
||||||
COPY ["package.json", "package-lock.json*", "npm-shrinkwrap.json*", "./"]
|
COPY ["package.json", "package-lock.json*", "npm-shrinkwrap.json*", "./"]
|
||||||
RUN npm install --production --silent && mv node_modules ../
|
RUN npm install --silent && mv node_modules ../
|
||||||
COPY . .
|
COPY . .
|
||||||
RUN chown -R node /usr/src/app
|
RUN chown -R node /usr/src/app
|
||||||
USER node
|
USER node
|
||||||
|
Loading…
Reference in New Issue
Block a user