|
@@ -3,10 +3,10 @@ WORKDIR /app/kpt-system-web
|
|
|
ENV NODE_OPTIONS="--max-old-space-size=4096"
|
|
|
COPY . .
|
|
|
RUN ls -l && pwd
|
|
|
-RUN npm install -g pnpm
|
|
|
+RUN npm install -g pnpm && npm install -g typescript@5.1.6
|
|
|
RUN echo "declare module 'lodash-es';" > types.d.ts
|
|
|
-RUN npm install -g typescript@5.1.6
|
|
|
-RUN pnpm install
|
|
|
+RUN pnpm config set registry https://registry.npmmirror.com && pnpm store prune && pnpm cache clean --force
|
|
|
+RUN pnpm install --fetch-timeout 60000
|
|
|
RUN pnpm build
|
|
|
|
|
|
FROM nginx:alpine as prod
|