License Remora under Apache 2.0
Add the canonical license and project notice, declare the license in package metadata, and include both files in production images.
This commit is contained in:
parent
560e1df9b2
commit
722c673d1e
1 changed files with 234 additions and 0 deletions
|
|
@ -17,11 +17,13 @@ RUN cargo build --release --locked --jobs ${CARGO_BUILD_JOBS} --package remora-a
|
|||
|
||||
FROM ${RUST_IMAGE} AS api
|
||||
COPY --from=rust-build /workspace/target/release/remora-api /usr/local/bin/remora-api
|
||||
COPY LICENSE NOTICE /usr/share/licenses/remora/
|
||||
USER 65532:65532
|
||||
ENTRYPOINT ["/usr/local/bin/remora-api"]
|
||||
|
||||
FROM ${RUST_IMAGE} AS worker
|
||||
COPY --from=rust-build /workspace/target/release/remora-worker /usr/local/bin/remora-worker
|
||||
COPY LICENSE NOTICE /usr/share/licenses/remora/
|
||||
USER 65532:65532
|
||||
ENTRYPOINT ["/usr/local/bin/remora-worker"]
|
||||
|
||||
|
|
@ -44,5 +46,6 @@ COPY --from=web-build /workspace/dist dist
|
|||
COPY --from=web-build /workspace/node_modules node_modules
|
||||
COPY web/server.mjs server.mjs
|
||||
COPY web/server server
|
||||
COPY LICENSE NOTICE /usr/share/licenses/remora/
|
||||
USER 65532:65532
|
||||
ENTRYPOINT ["node", "/app/server.mjs"]
|
||||
|
|
|
|||
Loading…
Reference in a new issue