FROM node:18 as build WORKDIR /app COPY package.json . COPY yarn.lock . RUN yarn COPY . . ARG NODE_ENV=production RUN yarn build FROM nginx:stable-alpine EXPOSE 5000 ENV PORT=5000 COPY installation/docker.conf /etc/nginx/templates/default.conf.template COPY --from=build /app/static /usr/share/nginx/html