|
@@ -1,10 +1,14 @@
|
|
-FROM node:latest as build
|
|
|
|
|
|
+FROM node:18.12-alpine as build
|
|
WORKDIR /app/kpt-system-web
|
|
WORKDIR /app/kpt-system-web
|
|
|
|
+ENV NODE_OPTIONS="--max-old-space-size=4096"
|
|
COPY . .
|
|
COPY . .
|
|
-RUN npm install -g pnpm
|
|
|
|
-RUN pnpm install
|
|
|
|
|
|
+RUN ls -l && pwd && mkdir -p /root/.local/share/pnpm/store/v3/files && chown -R $(whoami) /root/.local/share/pnpm/store/v3/
|
|
|
|
+RUN npm install -g pnpm && npm install -g typescript@5.1.6
|
|
|
|
+RUN echo "declare module 'lodash-es';" > types.d.ts
|
|
|
|
+RUN pnpm config set registry https://registry.npmmirror.com
|
|
|
|
+RUN pnpm update pinia vue-demi
|
|
|
|
+RUN pnpm install --fetch-timeout 60000
|
|
RUN pnpm build
|
|
RUN pnpm build
|
|
-RUN ls -l && pwd
|
|
|
|
|
|
|
|
FROM nginx:alpine as prod
|
|
FROM nginx:alpine as prod
|
|
WORKDIR /app/kpt-system-web
|
|
WORKDIR /app/kpt-system-web
|