Skip to content

Commit

Permalink
✨ feat: Add relay docker image
Browse files Browse the repository at this point in the history
  • Loading branch information
wanjohiryan committed Mar 29, 2024
1 parent 601c268 commit aa06f60
Showing 1 changed file with 23 additions and 0 deletions.
23 changes: 23 additions & 0 deletions relay.Dockerfile
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"]

0 comments on commit aa06f60

Please sign in to comment.