2022-01-26 18:09:26 +00:00
|
|
|
FROM debian:bookworm AS builder
|
2021-01-28 22:02:37 +00:00
|
|
|
|
2021-01-29 16:17:28 +00:00
|
|
|
# unzip is required when executing the mvn package command
|
2021-02-01 07:40:59 +00:00
|
|
|
RUN apt-get update && \
|
|
|
|
apt-get install -y openjdk-11-jdk-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
|
|
|
|
2022-01-26 18:09:26 +00:00
|
|
|
FROM debian:bookworm
|
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"]
|