This repository has been archived on 2023-03-15. You can view files and clone it, but cannot push or open issues or pull requests.
infrastructure/app/build/jitsi-conference-focus/Dockerfile

28 lines
970 B
Text
Raw Normal View History

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