Skip to content

Commit

Permalink
add liveman docker
Browse files Browse the repository at this point in the history
  • Loading branch information
a-wing committed Jul 7, 2024
1 parent bfd0ac9 commit 5613358
Show file tree
Hide file tree
Showing 2 changed files with 22 additions and 0 deletions.
1 change: 1 addition & 0 deletions .github/workflows/docker.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ jobs:
matrix:
app:
- live777
- liveman
- gstreamer
steps:
-
Expand Down
21 changes: 21 additions & 0 deletions docker/Dockerfile.liveman
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
FROM rust:slim-bookworm as builder

WORKDIR /app

COPY . .

RUN apt update -y && apt install -y --no-install-recommends npm

RUN npm install && npm run build

RUN cargo build --release

RUN cargo build --package=whipinto --release
RUN cargo build --package=whepfrom --release

FROM debian:bookworm-slim

COPY --from=builder /app/conf/liveman.toml /etc/live777/liveman.toml
COPY --from=builder /app/target/release/liveman /usr/local/bin/liveman

CMD ["liveman"]

0 comments on commit 5613358

Please sign in to comment.