From 4a4375a796183d3cbd85daf7cfb2d36230892757 Mon Sep 17 00:00:00 2001 From: HFO4 <912394456@qq.com> Date: Tue, 26 Apr 2022 19:57:33 +0800 Subject: [PATCH] fix: recursive `.map` file is not deleted in build script --- Dockerfile | 2 +- build.sh | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/Dockerfile b/Dockerfile index 114865e..3ed9f10 100644 --- a/Dockerfile +++ b/Dockerfile @@ -10,7 +10,7 @@ RUN git clone --recurse-submodules https://github.com/cloudreve/Cloudreve.git # build frontend WORKDIR /cloudreve_builder/Cloudreve/assets RUN yarn install --network-timeout 1000000 -RUN yarn run build && rm -rf build/*.map +RUN yarn run build && find . -name "*.map" -type f -delete # build backend WORKDIR /cloudreve_builder/Cloudreve diff --git a/build.sh b/build.sh index f130e65..3e4f282 100755 --- a/build.sh +++ b/build.sh @@ -30,7 +30,7 @@ buildAssets() { yarn install yarn run build cd build - rm -rf *.map + find . -name "*.map" -type f -delete cd $REPO zip -r - assets/build >assets.zip }