# ---- Base Node ---- FROM node:14 AS base WORKDIR /app # ---- Dependencies ---- FROM base AS dependencies COPY package*.json ./ RUN npm ci COPY . . # ---- Build ---- FROM dependencies AS build RUN npm run build # --- Release with Nginx ---- FROM nginx:1.16.0-alpine AS release COPY --from=build /app/build /usr/share/nginx/html/ EXPOSE 80 CMD ["nginx", "-g", "daemon off;"]