From 9ab643a71bd9341e181c5ff3b1eca72d2396f9b5 Mon Sep 17 00:00:00 2001 From: HFO4 <912394456@qq.com> Date: Tue, 26 Apr 2022 19:47:22 +0800 Subject: [PATCH] fix: zip assets folder path error --- .gitignore | 1 + Dockerfile | 2 +- build.sh | 2 +- 3 files changed, 3 insertions(+), 2 deletions(-) diff --git a/.gitignore b/.gitignore index 276b370..b272561 100644 --- a/.gitignore +++ b/.gitignore @@ -8,6 +8,7 @@ cloudreve *.db *.bin /release/ +assets.zip # Test binary, build with `go test -c` *.test diff --git a/Dockerfile b/Dockerfile index ede4bd5..114865e 100644 --- a/Dockerfile +++ b/Dockerfile @@ -14,7 +14,7 @@ RUN yarn run build && rm -rf build/*.map # build backend WORKDIR /cloudreve_builder/Cloudreve -RUN zip -r - assets >assets.zip +RUN zip -r - assets/build >assets.zip RUN tag_name=$(git describe --tags) \ && export COMMIT_SHA=$(git rev-parse --short HEAD) \ && go build -a -o cloudreve -ldflags " -X 'github.com/HFO4/cloudreve/pkg/conf.BackendVersion=$tag_name' -X 'github.com/HFO4/cloudreve/pkg/conf.LastCommit=$COMMIT_SHA'" diff --git a/build.sh b/build.sh index c68ccef..f130e65 100755 --- a/build.sh +++ b/build.sh @@ -32,7 +32,7 @@ buildAssets() { cd build rm -rf *.map cd $REPO - zip -r - assets >assets.zip + zip -r - assets/build >assets.zip } buildBinary() {