FROM node:alpine AS build

COPY package*.json ./

RUN npm install

COPY . .

RUN npm run build



FROM nginx:stable-alpine

COPY --from=build /build /usr/share/nginx/html

EXPOSE 80

CMD ["nginx", "-g", "daemon off;"]