2020-03-22 18:01:54 +01:00
|
|
|
FROM debian:buster AS builder
|
|
|
|
|
2020-09-12 11:15:07 +02:00
|
|
|
ARG PREFIXV
|
|
|
|
ARG VERSION
|
2020-03-22 18:01:54 +01:00
|
|
|
|
2020-09-12 11:15:07 +02:00
|
|
|
RUN apt-get update && \
|
2021-01-29 18:59:19 +01:00
|
|
|
apt-get install -y wget unzip maven openjdk-11-jdk-headless
|
|
|
|
|
|
|
|
RUN wget https://github.com/jitsi/jitsi-videobridge/archive/${PREFIXV}${VERSION}.zip -O jvb.zip
|
2020-09-12 11:27:32 +02:00
|
|
|
|
|
|
|
RUN unzip jvb.zip && \
|
2020-09-12 18:01:34 +00:00
|
|
|
mv jitsi-videobridge*${VERSION} jvb && \
|
2020-04-26 23:07:01 +02:00
|
|
|
cd jvb && \
|
|
|
|
mvn package -DskipTests && \
|
2020-09-12 18:01:34 +00:00
|
|
|
ls jvb/target && \
|
|
|
|
unzip jvb/target/jitsi-videobridge*.zip && \
|
2020-04-26 23:07:01 +02:00
|
|
|
mv jitsi-videobridge-*-SNAPSHOT build
|
2020-03-22 18:01:54 +01:00
|
|
|
|
|
|
|
FROM debian:buster
|
|
|
|
|
|
|
|
RUN apt-get update && \
|
2020-09-13 09:48:04 +00:00
|
|
|
apt-get install -y openjdk-11-jre-headless
|
2020-03-22 18:01:54 +01:00
|
|
|
|
2021-01-29 18:59:19 +01:00
|
|
|
COPY --from=builder /jvb/build /usr/share/jvb
|
2020-03-22 19:47:10 +01:00
|
|
|
COPY jvb_run /usr/local/bin/jvb_run
|
|
|
|
|
|
|
|
CMD ["/usr/local/bin/jvb_run"]
|