Commit 543cc64e by CaIon

feat(licenses): add LICENSE, NOTICE, and THIRD-PARTY-LICENSES files to Docker images

parent d146e45e
......@@ -9,4 +9,4 @@ community_bridge: # Replace with a single Community Bridge project-name e.g., cl
liberapay: # Replace with a single Liberapay username
issuehunt: # Replace with a single IssueHunt username
otechie: # Replace with a single Otechie username
custom: ['https://afdian.com/a/new-api'] # Replace with up to 4 custom sponsorship URLs e.g., ['link1', 'link2']
custom: # Replace with up to 4 custom sponsorship URLs e.g., ['link1', 'link2']
......@@ -44,6 +44,7 @@ RUN apt-get update \
&& update-ca-certificates
COPY --from=builder2 /build/new-api /
COPY LICENSE NOTICE THIRD-PARTY-LICENSES.md /licenses/
EXPOSE 3000
WORKDIR /data
ENTRYPOINT ["/new-api"]
......@@ -30,6 +30,7 @@ RUN apt-get update \
&& update-ca-certificates
COPY --from=builder /build/new-api /
COPY LICENSE NOTICE THIRD-PARTY-LICENSES.md /licenses/
EXPOSE 3000
WORKDIR /data
ENTRYPOINT ["/new-api"]
new-api Notices
new-api
Copyright (c) QuantumNous and contributors.
This project is licensed under the GNU Affero General Public License v3.0.
See LICENSE for the full project license terms.
==== Additional Terms under AGPLv3 Section 7 ====
Pursuant to Section 7(b) of the GNU Affero General Public License version 3,
the following reasonable legal notice and author attribution must be preserved
by modified versions in the Appropriate Legal Notices and in any prominent
about, legal, footer, or attribution location presented by the user interface:
"Frontend design and development by New API contributors."
Modified versions that present a user interface must also preserve a visible
link to the original project in a prominent about, legal, footer, or
attribution location:
https://github.com/QuantumNous/new-api
Modified versions must not misrepresent the origin of the software and must
mark their changes in accordance with AGPLv3 Section 7(c).
==== Third-Party Notices ====
This product includes third-party open source software. Copyright notices and
license terms for direct third-party dependencies are listed in
THIRD-PARTY-LICENSES.md.
Apache-2.0 upstream NOTICE entries identified for direct dependencies are
reproduced below. Preserve this file with Docker images, standalone binaries,
frontend bundles, and Electron desktop installers distributed to users.
==== Apache-2.0 Notices ====
AWS SDK for Go
Copyright 2015 Amazon.com, Inc. or its affiliates. All Rights Reserved.
Copyright 2014-2015 Stripe, Inc.
smithy-go
Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
otp
Copyright (c) 2014, Paul Querna
This product includes software developed by
Paul Querna (http://paul.querna.org/).
==== Electron / Chromium Notices ====
Desktop distributions include Electron, which embeds Chromium, Node.js, V8,
and other third-party components. Electron and Chromium third-party license
notices must remain available with desktop installers and installed apps.
==== End of Notices ====
......@@ -447,6 +447,14 @@ Welcome all forms of contribution!
This project is licensed under the [GNU Affero General Public License v3.0 (AGPLv3)](./LICENSE).
Additional terms under AGPLv3 Section 7 apply. Modified versions must preserve
the author attribution notice `Frontend design and development by New API
contributors.` in the appropriate legal notices and in any prominent about,
legal, footer, or attribution location presented by the user interface.
Modified versions that present a user interface must also preserve a visible
link to the original project: <https://github.com/QuantumNous/new-api>.
This is an open-source project developed based on [One API](https://github.com/songquanpeng/one-api) (MIT License).
If your organization's policies do not permit the use of AGPLv3-licensed software, or if you wish to avoid the open-source obligations of AGPLv3, please contact us at: [support@quantumnous.com](mailto:support@quantumnous.com)
......
......@@ -63,6 +63,26 @@
{
"from": "../web/dist",
"to": "web/dist"
},
{
"from": "../LICENSE",
"to": "licenses/LICENSE"
},
{
"from": "../NOTICE",
"to": "licenses/NOTICE"
},
{
"from": "../THIRD-PARTY-LICENSES.md",
"to": "licenses/THIRD-PARTY-LICENSES.md"
},
{
"from": "node_modules/electron/dist/LICENSE",
"to": "licenses/electron/LICENSE"
},
{
"from": "node_modules/electron/dist/LICENSES.chromium.html",
"to": "licenses/electron/LICENSES.chromium.html"
}
]
},
......@@ -76,6 +96,26 @@
{
"from": "../new-api.exe",
"to": "bin/new-api.exe"
},
{
"from": "../LICENSE",
"to": "licenses/LICENSE"
},
{
"from": "../NOTICE",
"to": "licenses/NOTICE"
},
{
"from": "../THIRD-PARTY-LICENSES.md",
"to": "licenses/THIRD-PARTY-LICENSES.md"
},
{
"from": "node_modules/electron/dist/LICENSE",
"to": "licenses/electron/LICENSE"
},
{
"from": "node_modules/electron/dist/LICENSES.chromium.html",
"to": "licenses/electron/LICENSES.chromium.html"
}
]
},
......@@ -90,6 +130,26 @@
{
"from": "../new-api",
"to": "bin/new-api"
},
{
"from": "../LICENSE",
"to": "licenses/LICENSE"
},
{
"from": "../NOTICE",
"to": "licenses/NOTICE"
},
{
"from": "../THIRD-PARTY-LICENSES.md",
"to": "licenses/THIRD-PARTY-LICENSES.md"
},
{
"from": "node_modules/electron/dist/LICENSE",
"to": "licenses/electron/LICENSE"
},
{
"from": "node_modules/electron/dist/LICENSES.chromium.html",
"to": "licenses/electron/LICENSES.chromium.html"
}
]
},
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment