2020-03-22 17:01:54 +00:00
|
|
|
FROM debian:buster AS builder
|
|
|
|
|
2020-09-12 09:15:07 +00:00
|
|
|
ARG PREFIXV
|
|
|
|
ARG VERSION
|
2020-03-22 17:01:54 +00:00
|
|
|
|
2020-09-12 09:15:07 +00:00
|
|
|
RUN apt-get update && \
|
|
|
|
apt-get install -y wget unzip maven openjdk-11-jdk && \
|
|
|
|
wget https://github.com/jitsi/jitsi-videobridge/archive/${PREFIXV}${VERSION}.zip -O jvb.zip && \
|
2020-03-22 17:01:54 +00:00
|
|
|
unzip jvb.zip && \
|
2020-04-26 21:07:01 +00:00
|
|
|
mv jitsi-videobridge-stable-jitsi-meet_${VERSION} jvb && \
|
|
|
|
cd jvb && \
|
|
|
|
mvn package -DskipTests && \
|
|
|
|
unzip target/jitsi-videobridge-*.zip && \
|
|
|
|
mv jitsi-videobridge-*-SNAPSHOT build
|
2020-03-22 17:01:54 +00:00
|
|
|
|
|
|
|
FROM debian:buster
|
|
|
|
|
|
|
|
RUN apt-get update && \
|
2020-03-22 18:47:10 +00:00
|
|
|
apt-get install -y openjdk-11-jdk
|
2020-03-22 17:01:54 +00:00
|
|
|
|
2020-04-26 21:07:01 +00:00
|
|
|
COPY --from=builder /jvb/build /srv/jvb
|
2020-03-27 22:27:52 +00:00
|
|
|
ENV HOME=/root
|
|
|
|
WORKDIR /root
|
2020-03-22 18:47:10 +00:00
|
|
|
COPY jvb_run /usr/local/bin/jvb_run
|
|
|
|
|
2020-04-26 21:07:01 +00:00
|
|
|
ENV JAVA_SYS_PROPS="-Dnet.java.sip.communicator.SC_HOME_DIR_LOCATION=/root -Dnet.java.sip.communicator.SC_HOME_DIR_NAME=.sip-communicator -Dnet.java.sip.communicator.SC_LOG_DIR_LOCATION=/var/log/jitsi"
|
|
|
|
|
2020-03-22 18:47:10 +00:00
|
|
|
CMD ["/usr/local/bin/jvb_run"]
|