From 929e480f0acb871aa1e8da7f9f0c84ed32ece26e Mon Sep 17 00:00:00 2001 From: MaysWind Date: Wed, 9 Jun 2021 01:13:13 +0800 Subject: [PATCH] add license file to package and docker image --- Dockerfile | 1 + build.sh | 1 + 2 files changed, 2 insertions(+) diff --git a/Dockerfile b/Dockerfile index 1ff9221f..f5bb018e 100644 --- a/Dockerfile +++ b/Dockerfile @@ -32,6 +32,7 @@ WORKDIR /ezbookkeeping COPY --from=be-builder --chown=1000:1000 /go/src/github.com/mayswind/ezbookkeeping/ezbookkeeping /ezbookkeeping/ezbookkeeping COPY --from=fe-builder --chown=1000:1000 /go/src/github.com/mayswind/ezbookkeeping/dist /ezbookkeeping/public COPY --chown=1000:1000 conf /ezbookkeeping/conf +COPY --chown=1000:1000 LICENSE /ezbookkeeping/LICENSE USER 1000:1000 EXPOSE 8080 ENTRYPOINT ["/docker-entrypoint.sh"] diff --git a/build.sh b/build.sh index cd8e2d9c..f49b1426 100755 --- a/build.sh +++ b/build.sh @@ -161,6 +161,7 @@ build_package() { cp ezbookkeeping package/ cp -R dist package/public cp -R conf package/conf + cp LICENSE package/ cd package || { echo_red "Error: Build Failed"; exit 1; } tar cvzf "../$package_file_name" .