From ac78e9db0260be9dbe08d393e1069c634044ce67 Mon Sep 17 00:00:00 2001 From: HFO4 <912394456@qq.com> Date: Mon, 25 Apr 2022 16:49:21 +0800 Subject: [PATCH] add empty `assets.zip` for placeholder --- Dockerfile | 2 +- assets.zip | 0 build.sh | 2 +- 3 files changed, 2 insertions(+), 2 deletions(-) create mode 100644 assets.zip diff --git a/Dockerfile b/Dockerfile index 8c82570..ede4bd5 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.zip assets +RUN zip -r - assets >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/assets.zip b/assets.zip new file mode 100644 index 0000000..e69de29 diff --git a/build.sh b/build.sh index c008fb4..c68ccef 100755 --- a/build.sh +++ b/build.sh @@ -32,7 +32,7 @@ buildAssets() { cd build rm -rf *.map cd $REPO - zip -r assets.zip assets + zip -r - assets >assets.zip } buildBinary() {