aboutsummaryrefslogtreecommitdiff
path: root/app/jitsi/build/jitsi-conference-focus/Dockerfile
blob: 0e11df9ecb03dae8bbd59cae1cce36cd6b9e13d3 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
FROM fedora:33 AS builder

# unzip is required when executing the mvn package command
RUN dnf install -y java-latest-openjdk-headless maven git unzip

ARG JICOFO_TAG
RUN git clone --depth 1 --branch $JICOFO_TAG https://github.com/jitsi/jicofo

WORKDIR jicofo
COPY *.patch .
RUN git apply 0001-Remove-broken-command-line-args-parameters-setting.patch
RUN mvn package -DskipTests -Dassembly.skipAssembly=false

RUN unzip target/jicofo-1.1-SNAPSHOT-archive.zip && \
    mv jicofo-1.1-SNAPSHOT /srv/build

FROM debian:bullseye

RUN apt-get update && \
    apt-get install -y openjdk-11-jre-headless ca-certificates

COPY --from=builder /srv/build /usr/share/jicofo
COPY jicofo /usr/local/bin

CMD ["/usr/local/bin/jicofo"]