- FROM node:latest as build
- WORKDIR /app/kpt-system-web
- COPY . .
- RUN npm install -g pnpm
- RUN pnpm install
- RUN pnpm build
- RUN ls -l && pwd
- FROM nginx:alpine as prod
- WORKDIR /app/kpt-system-web
- RUN ls -l && pwd
- COPY --from=build ./dist/ /usr/share/nginx/html/
- COPY --from=build ./nginx.conf /etc/nginx/conf.d/default.conf
- EXPOSE 80
|