add dockerfile

This commit is contained in:
Zuhdan Ubay 2020-06-03 14:21:37 +07:00
parent 8a39954811
commit dfb039141e

View file

@ -0,0 +1,10 @@
### STAGE 1: Build ###
FROM node:12.7-alpine AS build
WORKDIR /usr/src/app
COPY package.json ./
RUN npm install
COPY . .
RUN npm run build
### STAGE 2: Run ###
FROM nginx:1.17.1-alpine
COPY --from=build /usr/src/app/dist /usr/share/nginx/html