client.dockerfile 314 B

12345678910111213141516
  1. FROM node:16 AS build-stage
  2. COPY . /app
  3. WORKDIR /app
  4. RUN yarn install
  5. RUN yarn workspace rath-client buildOnDocker
  6. FROM nginx:1.24
  7. COPY --from=build-stage /app/packages/rath-client/build /usr/share/nginx/html
  8. COPY ./docker/nginx.conf /etc/nginx/conf.d/default.conf
  9. ENTRYPOINT ["nginx", "-g", "daemon off;"]