mirror of
https://github.com/mayswind/ezbookkeeping.git
synced 2026-05-19 17:24:26 +08:00
add license file to package and docker image
This commit is contained in:
@@ -32,6 +32,7 @@ WORKDIR /ezbookkeeping
|
|||||||
COPY --from=be-builder --chown=1000:1000 /go/src/github.com/mayswind/ezbookkeeping/ezbookkeeping /ezbookkeeping/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 --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 conf /ezbookkeeping/conf
|
||||||
|
COPY --chown=1000:1000 LICENSE /ezbookkeeping/LICENSE
|
||||||
USER 1000:1000
|
USER 1000:1000
|
||||||
EXPOSE 8080
|
EXPOSE 8080
|
||||||
ENTRYPOINT ["/docker-entrypoint.sh"]
|
ENTRYPOINT ["/docker-entrypoint.sh"]
|
||||||
|
|||||||
@@ -161,6 +161,7 @@ build_package() {
|
|||||||
cp ezbookkeeping package/
|
cp ezbookkeeping package/
|
||||||
cp -R dist package/public
|
cp -R dist package/public
|
||||||
cp -R conf package/conf
|
cp -R conf package/conf
|
||||||
|
cp LICENSE package/
|
||||||
|
|
||||||
cd package || { echo_red "Error: Build Failed"; exit 1; }
|
cd package || { echo_red "Error: Build Failed"; exit 1; }
|
||||||
tar cvzf "../$package_file_name" .
|
tar cvzf "../$package_file_name" .
|
||||||
|
|||||||
Reference in New Issue
Block a user