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" .