nixcfg/cluster/prod/app/jitsi/build/jitsi-videobridge/Dockerfile

25 lines
673 B
Docker
Raw Normal View History

2022-08-23 16:00:07 +00:00
FROM debian:bookworm AS builder
RUN apt-get update && \
2023-02-02 13:48:59 +00:00
apt-get install -y git unzip maven openjdk-17-jdk-headless
2022-08-23 16:00:07 +00:00
ARG JVB_TAG
RUN git clone --depth 1 --branch ${JVB_TAG} https://github.com/jitsi/jitsi-videobridge
WORKDIR jitsi-videobridge
2023-02-02 13:48:59 +00:00
#COPY *.patch .
#RUN git apply 0001-Remove-deprecated-argument.patch
2022-08-23 16:00:07 +00:00
RUN mvn package -DskipTests
RUN unzip jvb/target/jitsi-videobridge*.zip && \
mv jitsi-videobridge-*-SNAPSHOT build
FROM debian:bookworm
RUN apt-get update && \
2023-02-02 13:48:59 +00:00
apt-get install -y openjdk-17-jre-headless curl iproute2
2022-08-23 16:00:07 +00:00
COPY --from=builder /jitsi-videobridge/build /usr/share/jvb
COPY jvb_run /usr/local/bin/jvb_run
CMD ["/usr/local/bin/jvb_run"]