aboutsummaryrefslogtreecommitdiff
path: root/app/jitsi/build/jitsi-conference-focus/Dockerfile
blob: cb6b1273ac3ed7a600403a64fc45ec9899cafb1e (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
26
27
28
29
30
31
32
33
34
35
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 PREFIXV
ARG VERSION

# Create a cache
RUN git clone https://github.com/superboum/jicofo && \
    cd jicofo && \
    mvn package -DskipTests -Dassembly.skipAssembly=false

WORKDIR jicofo
# Ensure latest version is compiled
RUN git pull && \
    git checkout 194795ed2a3ca08c25322c99f1ee89d134e1e1a2

# Wild patch for debug, once it will work we can safely remove this dead code
#COPY jicofogit/src/main/kotlin/org/jitsi/jicofo/JicofoServices.kt src/main/kotlin/org/jitsi/jicofo/JicofoServices.kt
#COPY jicofogit/src/main/java/org/jitsi/impl/protocol/xmpp/XmppProtocolProvider.java src/main/java/org/jitsi/impl/protocol/xmpp/XmppProtocolProvider.java

RUN mvn package -DskipTests -Dassembly.skipAssembly=false && \
    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"]