-
-
Notifications
You must be signed in to change notification settings - Fork 29
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
601c268
commit aa06f60
Showing
1 changed file
with
23 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
#Git clone kixelated's moq-rs then build the moq-relay and push it to the final image | ||
#Copied from https://github.com/kixelated/moq-rs/blob/main/Dockerfile | ||
FROM rust:bookworm as builder | ||
|
||
WORKDIR /build | ||
|
||
RUN apt-get install -y git | ||
|
||
RUN git clone https://github.com/kixelated/moq-rs . | ||
|
||
RUN --mount=type=cache,target=/usr/local/cargo/registry \ | ||
--mount=type=cache,target=/build/target \ | ||
cargo build --release && cp /build/target/release/moq-* /usr/local/cargo/bin | ||
|
||
FROM debian:bookworm-slim | ||
|
||
RUN apt-get update && \ | ||
apt-get install -y --no-install-recommends ca-certificates curl libssl3 && \ | ||
rm -rf /var/lib/apt/lists/* | ||
|
||
COPY --from=builder /usr/local/cargo/bin/moq-relay /usr/local/bin | ||
|
||
CMD ["moq-relay"] |