Files
zap-stream-core/crates/zap-stream/Dockerfile

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"]