Dockerfile
349 Bytes
FROM node:14-alpine as build
WORKDIR /usr
COPY common ./common
COPY web ./web
WORKDIR /usr/common
RUN yarn install
WORKDIR /usr/web
RUN yarn install
RUN yarn build
FROM nginx:latest
COPY web/default.conf /etc/nginx/conf.d/default.conf
COPY --from=build /usr/web/build /usr/web/build
EXPOSE 443
EXPOSE 80
CMD ["nginx", "-g", "daemon off;"]