mirror of
https://github.com/v0l/zap-stream-core.git
synced 2025-06-20 13:40:33 +00:00
15 lines
403 B
Docker
Executable File
15 lines
403 B
Docker
Executable File
FROM voidic/rust-ffmpeg AS build
|
|
WORKDIR /app/src
|
|
COPY . .
|
|
ENV LD_LIBRARY_PATH=$FFMPEG_DIR/lib
|
|
RUN cargo test
|
|
RUN cargo install --path ./crates/zap-stream --root /app/build
|
|
|
|
FROM rust:bookworm
|
|
WORKDIR /app
|
|
RUN apt update && \
|
|
apt install -y libx264-164 && \
|
|
rm -rf /var/lib/apt/lists/*
|
|
COPY --from=build /app/build .
|
|
COPY --from=build /app/src/ffmpeg/lib/ /lib
|
|
ENTRYPOINT ["/app/bin/zap-stream"] |