FROM node:12.13-slim AS builder WORKDIR /app RUN npm install -g npm@latest COPY package*.json ./ RUN npm install COPY . . RUN npm run build FROM nginx RUN mkdir /usr/share/nginx/html/geocontrib COPY --from=builder /app/dist /usr/share/nginx/html/geocontrib COPY nginx.conf /etc/nginx/conf.d/default.conf EXPOSE 80 CMD ["nginx", "-g", "daemon off;"]