8 lines
209 B
Docker
8 lines
209 B
Docker
|
FROM node:14
|
||
|
RUN mkdir -p /home/node/app/node_modules && chown -R node:node /home/node/app
|
||
|
WORKDIR /home/node/app
|
||
|
COPY package*.json ./
|
||
|
USER node
|
||
|
RUN npm i
|
||
|
COPY --chown=node:node . .
|
||
|
CMD [ "node", "index.js" ]
|