Advertisement
Guest User

Untitled

a guest
Sep 18th, 2019
1,118
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.26 KB | None | 0 0
  1. # base node image
  2. FROM node:10
  3.  
  4. WORKDIR /usr/src/app
  5.  
  6. ENV PORT 8080
  7. ENV HOST 0.0.0.0
  8.  
  9. COPY package*.json ./
  10.  
  11. RUN npm install --only=production
  12.  
  13. # Copy local next code to the container
  14. COPY . .
  15.  
  16. # Build production app
  17. RUN npm run build
  18.  
  19. # Start the service
  20. CMD npm start
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement