FROM node:14-alpine as builder

COPY . ./

RUN npm ci && npm run build


FROM nginx as ki-frontend

COPY --from=builder /dist/ /usr/share/nginx/html/