aboutsummaryrefslogtreecommitdiff
path: root/app/jitsi/build/jitsi-videobridge/Dockerfile
blob: 2a329463b5ab6cb3ca9a22b032aa854e3c263c32 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
FROM debian:buster AS builder

RUN apt-get update && \
    apt-get install -y git unzip maven openjdk-11-jdk-headless

ARG JVB_TAG
RUN git clone --depth 1 --branch ${JVB_TAG} https://github.com/jitsi/jitsi-videobridge

WORKDIR jitsi-videobridge
COPY *.patch .
RUN git apply 0001-Disable-legacy-parameters.patch
RUN mvn package  -DskipTests
RUN unzip jvb/target/jitsi-videobridge*.zip && \
    mv jitsi-videobridge-*-SNAPSHOT build

FROM debian:buster

RUN apt-get update && \
    apt-get install -y openjdk-11-jre-headless curl

COPY --from=builder /jitsi-videobridge/build /usr/share/jvb
COPY jvb_run /usr/local/bin/jvb_run

CMD ["/usr/local/bin/jvb_run"]