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
|
|
|
|
2020-09-12 09:15:07 +00:00
|
|
|
ARG PREFIXV
|
|
|
|
ARG VERSION
|
2021-01-29 16:17:28 +00:00
|
|
|
|
|
|
|
# Create a cache
|
|
|
|
RUN git clone https://github.com/superboum/jicofo && \
|
2020-03-22 17:01:54 +00:00
|
|
|
cd jicofo && \
|
2021-01-29 16:17:28 +00:00
|
|
|
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 && \
|
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
|
|
|
|
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"]
|