Guest User

Untitled

a guest
Mar 23rd, 2018
90
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.39 KB | None | 0 0
  1. FROM node:9 as builder
  2. RUN mkdir -p /usr/src/app
  3. WORKDIR /usr/src/app
  4. COPY package.json /usr/src/app
  5. RUN npm install
  6. COPY . /usr/src/app
  7. #RUN NODE_ENV=production webpack
  8. CMD ["NODE_ENV=production", "node_modules/.bin/webpack"]
  9.  
  10. FROM nginx
  11. COPY nginx.conf /etc/nginx/nginx.conf
  12. COPY --from=builder /usr/src/app/dist /usr/share/nginx/html
  13. EXPOSE 5000
  14. RUN chown nginx.nginx /usr/share/nginx/html/ -R
Add Comment
Please, Sign In to add comment