Advertisement
Guest User

Untitled

a guest
Jun 19th, 2019
73
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.55 KB | None | 0 0
  1. FROM node:8.11.1-alpine
  2.  
  3. # Provides cached layer for node_modules
  4. ADD package.json /tmp/package.json
  5. RUN cd /tmp && npm install
  6. RUN mkdir -p /app && cp -a /tmp/node_modules /app/node_modules
  7.  
  8. # Define working directory
  9. WORKDIR /app
  10.  
  11. # Add everything in the current directory to our image, in the 'app' folder.
  12. COPY ./src/ ./src
  13. COPY ./public/ ./public
  14. COPY ./package.json ./package.json
  15.  
  16. #RUN npm install -g npm-run-all
  17. #RUN npm install -g react-scripts@2.1.3
  18. #RUN npm install -g node-sass-chokidar@1.3.3
  19.  
  20. RUN npm run build
  21.  
  22. # Run our app.
  23. CMD ["npm", "start"]
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement