Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- FROM node:9 as builder
- RUN mkdir -p /usr/src/app
- WORKDIR /usr/src/app
- COPY package.json /usr/src/app
- RUN npm install
- COPY . /usr/src/app
- #RUN NODE_ENV=production webpack
- CMD ["NODE_ENV=production", "node_modules/.bin/webpack"]
- FROM nginx
- COPY nginx.conf /etc/nginx/nginx.conf
- COPY --from=builder /usr/src/app/dist /usr/share/nginx/html
- EXPOSE 5000
- RUN chown nginx.nginx /usr/share/nginx/html/ -R
Add Comment
Please, Sign In to add comment