Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- FROM node:8.9-alpine
- RUN mkdir -p /app
- WORKDIR /app
- RUN npm config set unsafe-perm true
- RUN npm install -g nodemon
- RUN npm config set registry https://registry.npmjs.org
- COPY package.json /app/package.json
- RUN npm install \
- && npm ls \
- && npm cache clean --force \
- && mv /app/node_modules /node_modules
- COPY . /app
- ENV PORT 80
- EXPOSE 80
- CMD ["node", "server.js"]
Add Comment
Please, Sign In to add comment