aboutsummaryrefslogtreecommitdiff
path: root/app/jitsi/build/jitsi-videobridge/Dockerfile
diff options
context:
space:
mode:
authorQuentin Dufour <quentin@dufour.io>2021-02-01 07:48:50 +0100
committerQuentin Dufour <quentin@dufour.io>2021-02-01 07:48:50 +0100
commitcb69a1123cc36c792cb0993ae46c3700a7391a62 (patch)
tree02845fb5b4e8216875942dba0e4c949fc87cc5ed /app/jitsi/build/jitsi-videobridge/Dockerfile
parentc2960f75b7725e19e5c9366268fd8664ffc5fcac (diff)
downloadinfrastructure-cb69a1123cc36c792cb0993ae46c3700a7391a62.tar.gz
infrastructure-cb69a1123cc36c792cb0993ae46c3700a7391a62.zip
Stabilize build scripts
Diffstat (limited to 'app/jitsi/build/jitsi-videobridge/Dockerfile')
-rw-r--r--app/jitsi/build/jitsi-videobridge/Dockerfile21
1 files changed, 9 insertions, 12 deletions
diff --git a/app/jitsi/build/jitsi-videobridge/Dockerfile b/app/jitsi/build/jitsi-videobridge/Dockerfile
index 4a3d504..2a32946 100644
--- a/app/jitsi/build/jitsi-videobridge/Dockerfile
+++ b/app/jitsi/build/jitsi-videobridge/Dockerfile
@@ -1,19 +1,16 @@
FROM debian:buster AS builder
-ARG PREFIXV
-ARG VERSION
-
RUN apt-get update && \
- apt-get install -y wget unzip maven openjdk-11-jdk-headless
+ apt-get install -y git unzip maven openjdk-11-jdk-headless
-RUN wget https://github.com/jitsi/jitsi-videobridge/archive/${PREFIXV}${VERSION}.zip -O jvb.zip
+ARG JVB_TAG
+RUN git clone --depth 1 --branch ${JVB_TAG} https://github.com/jitsi/jitsi-videobridge
-RUN unzip jvb.zip && \
- mv jitsi-videobridge*${VERSION} jvb && \
- cd jvb && \
- mvn package -DskipTests && \
- ls jvb/target && \
- unzip jvb/target/jitsi-videobridge*.zip && \
+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
@@ -21,7 +18,7 @@ FROM debian:buster
RUN apt-get update && \
apt-get install -y openjdk-11-jre-headless curl
-COPY --from=builder /jvb/build /usr/share/jvb
+COPY --from=builder /jitsi-videobridge/build /usr/share/jvb
COPY jvb_run /usr/local/bin/jvb_run
CMD ["/usr/local/bin/jvb_run"]