infrastructure/app_build/jitsi-conference-focus/Dockerfile

24 lines
688 B
Text
Raw Normal View History

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
RUN apt-get update && \
2020-04-26 23:07:01 +02:00
apt-get install -y openjdk-11-jdk maven wget unzip && \
2020-09-12 11:15:07 +02:00
wget https://github.com/jitsi/jicofo/archive/${PREFIXV}${VERSION}.zip -O jicofo.zip && \
2020-04-26 23:07:01 +02:00
unzip jicofo.zip && \
mv jicofo-jitsi-meet_${VERSION} jicofo && \
2020-03-22 18:01:54 +01:00
cd jicofo && \
2020-04-26 23:07:01 +02:00
mvn package -DskipTests -Dassembly.skipAssembly=false && \
2020-03-22 18:01:54 +01:00
unzip target/jicofo-1.1-SNAPSHOT-archive.zip && \
2020-04-26 23:07:01 +02:00
mv jicofo-1.1-SNAPSHOT /srv/build
2020-03-22 18:01:54 +01:00
FROM debian:buster
RUN apt-get update && \
2020-03-22 18:14:16 +01:00
apt-get install -y openjdk-11-jdk ca-certificates
2020-03-22 18:01:54 +01:00
2020-04-26 23:07:01 +02:00
COPY --from=builder /srv/build /srv/jicofo
2020-03-22 18:01:54 +01:00
COPY jicofo /usr/local/bin/jicofo
CMD ["/usr/local/bin/jicofo"]