Rationalize container building

This commit is contained in:
Quentin 2020-09-12 11:27:32 +02:00
parent 5337be94df
commit 0c05730a5d
3 changed files with 13 additions and 9 deletions

View file

@ -4,9 +4,10 @@ ARG PREFIXV
ARG VERSION
RUN apt-get update && \
apt-get install -y openjdk-11-jdk maven wget unzip && \
wget https://github.com/jitsi/jicofo/archive/${PREFIXV}${VERSION}.zip -O jicofo.zip && \
unzip jicofo.zip && \
mv jicofo-jitsi-meet_${VERSION} jicofo && \
wget https://github.com/jitsi/jicofo/archive/${PREFIXV}${VERSION}.zip -O jicofo.zip
RUN unzip jicofo.zip && \
mv jicofo-jitsi-meet_*${VERSION} jicofo && \
cd jicofo && \
mvn package -DskipTests -Dassembly.skipAssembly=false && \
unzip target/jicofo-1.1-SNAPSHOT-archive.zip && \

View file

@ -2,11 +2,13 @@ FROM debian:buster AS builder
ARG PREFIXV
ARG VERSION
RUN apt-get update && \
apt-get install -y npm git nodejs make wget unzip && \
wget https://github.com/jitsi/jitsi-meet/archive/${PREFIXV}${VERSION}.zip -O jitsi-meet.zip && \
unzip jitsi-meet.zip && \
mv jitsi-meet-${VERSION} jitsi-meet && \
wget https://github.com/jitsi/jitsi-meet/archive/${PREFIXV}${VERSION}.zip -O jitsi-meet.zip
RUN unzip jitsi-meet.zip && \
mv jitsi-meet-*${VERSION} jitsi-meet && \
cd jitsi-meet && \
npm install && \
make

View file

@ -5,9 +5,10 @@ ARG VERSION
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 && \
unzip jvb.zip && \
mv jitsi-videobridge-stable-jitsi-meet_${VERSION} jvb && \
wget https://github.com/jitsi/jitsi-videobridge/archive/${PREFIXV}${VERSION}.zip -O jvb.zip
RUN unzip jvb.zip && \
mv jitsi-videobridge-*${VERSION} jvb && \
cd jvb && \
mvn package -DskipTests && \
unzip target/jitsi-videobridge-*.zip && \