Guest User

Untitled

a guest
Feb 17th, 2019
94
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.35 KB | None | 0 0
  1. # from base image node
  2. FROM node:8.11-slim
  3.  
  4. RUN mkdir -p /usr/src/app
  5. WORKDIR /usr/src/app
  6.  
  7. # copying all the files from your file system to container file system
  8. COPY package.json .
  9.  
  10. # install all dependencies
  11. RUN npm install
  12.  
  13. # copy other files as well
  14. COPY ./ .
  15.  
  16. #expose the port
  17. EXPOSE 3070
  18.  
  19. # command to run when intantiate an image
  20. CMD ["npm","start"]
Add Comment
Please, Sign In to add comment