infrastructure/app/jitsi/build/jitsi-conference-focus/Dockerfile

26 lines
719 B
Text
Raw Normal View History

2021-01-28 22:02:37 +00:00
FROM fedora:33 AS builder
2021-01-29 16:17:28 +00:00
# unzip is required when executing the mvn package command
RUN dnf install -y java-latest-openjdk-headless maven git unzip
2020-03-22 17:01:54 +00:00
2021-02-01 06:48:50 +00:00
ARG JICOFO_TAG
RUN git clone --depth 1 --branch $JICOFO_TAG https://github.com/jitsi/jicofo
2021-01-29 16:17:28 +00:00
WORKDIR jicofo
2021-02-01 06:48:50 +00:00
COPY *.patch .
RUN git apply 0001-Remove-broken-command-line-args-parameters-setting.patch
RUN mvn package -DskipTests -Dassembly.skipAssembly=false
2021-01-29 16:17:28 +00:00
2021-02-01 06:48:50 +00:00
RUN 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
2021-01-28 22:02:37 +00:00
FROM debian:bullseye
2020-03-22 17:01:54 +00:00
RUN apt-get update && \
2020-09-13 09:46:14 +00:00
apt-get install -y openjdk-11-jre-headless ca-certificates
2021-01-20 14:44:42 +00:00
COPY --from=builder /srv/build /usr/share/jicofo
COPY jicofo /usr/local/bin
2020-03-22 17:01:54 +00:00
CMD ["/usr/local/bin/jicofo"]