From 68b20ab6be73600a4adea5a43f2b835e14105171 Mon Sep 17 00:00:00 2001 From: wyxfzgg <3132758001@qq.com> Date: Wed, 13 May 2026 10:34:41 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8DDocker=E6=9E=84=E5=BB=BA?= =?UTF-8?q?=EF=BC=9Anpm=20install=20+=20=E4=BF=AE=E5=A4=8Dwebpack=20Progre?= =?UTF-8?q?ssPlugin=E5=85=BC=E5=AE=B9=E6=80=A7?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Dockerfile | 3 +++ 1 file changed, 3 insertions(+) diff --git a/Dockerfile b/Dockerfile index a064bb3..2557b81 100644 --- a/Dockerfile +++ b/Dockerfile @@ -6,6 +6,9 @@ WORKDIR /gitlink_help_center COPY ./ /gitlink_help_center/ RUN npm install --legacy-peer-deps + +RUN node -e "const fs=require('fs');['node_modules/@docusaurus/bundler/lib/compiler.js','node_modules/@docusaurus/bundler/lib/webpack/utils.js'].forEach(f=>{try{let c=fs.readFileSync(f,'utf8');c=c.replace(/new\s+\w*\.?ProgressPlugin\(\s*\{[\s\S]*?\}\s*\)/g,'new webpack.ProgressPlugin()');fs.writeFileSync(f,c)}catch(e){}})" + ENV CI=true RUN npm run build -- --locale zh-cn CMD ["npm", "run", "serve"]