Here is my Dockerfile:
FROM node:10-alpine
RUN mkdir -p /home/node/salvator/node_modules && chown -R node:node /home/node/$
WORKDIR /home/node/salvator
COPY package*.json ./
USER node
RUN npm install
COPY --chown=node:node . .
EXPOSE 3000
CMD [ "pm2 start", "index.js" ]
I am cloning the app repository from bitbucket and i cant understand what do ineed to write in place of WORKDIR and RUN mkdir
autoreconf
. So you need to install it before runningnpm install
. – Guitarist