- # Build part
- FROM node:8.11.2-alpine as node
- WORKDIR /usr/src/app
- COPY . .
- RUN npm i npm@latest -g
- RUN npm i && npm run build
- #Run part
- FROM nginx:1.13.12-alpine
- COPY --from=node /usr/src/app/build/ /usr/share/nginx/html
- COPY ./nginx.conf /etc/nginx/conf.d/default.conf
- EXPOSE 80/tcp
|