diff --git a/.github/workflows/docker.yml b/.github/workflows/docker.yml index e897cab6..2968758f 100644 --- a/.github/workflows/docker.yml +++ b/.github/workflows/docker.yml @@ -16,6 +16,7 @@ jobs: matrix: app: - live777 + - liveman - gstreamer steps: - diff --git a/docker/Dockerfile.liveman b/docker/Dockerfile.liveman new file mode 100644 index 00000000..ba5be11b --- /dev/null +++ b/docker/Dockerfile.liveman @@ -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"]