nixcfg/cluster/prod/app/jitsi/build/jitsi-conference-focus/Dockerfile

27 lines
757 B
Text
Raw Normal View History

2022-08-23 16:00:07 +00:00
FROM debian:bookworm AS builder
# unzip is required when executing the mvn package command
RUN apt-get update && \
2023-02-02 13:48:59 +00:00
apt-get install -y openjdk-17-jdk-headless maven git unzip
2022-08-23 16:00:07 +00:00
ARG JICOFO_TAG
RUN git clone --depth 1 --branch $JICOFO_TAG https://github.com/jitsi/jicofo
WORKDIR jicofo
2023-02-02 13:48:59 +00:00
#COPY *.patch .
#RUN git apply 0001-Remove-broken-command-line-args-parameters-setting.patch
2022-08-23 16:00:07 +00:00
RUN mvn package -DskipTests -Dassembly.skipAssembly=false
2023-02-02 13:48:59 +00:00
RUN unzip jicofo/target/jicofo-1.1-SNAPSHOT-archive.zip && \
2022-08-23 16:00:07 +00:00
mv jicofo-1.1-SNAPSHOT /srv/build
FROM debian:bookworm
RUN apt-get update && \
2023-02-02 13:48:59 +00:00
apt-get install -y openjdk-17-jre-headless ca-certificates
2022-08-23 16:00:07 +00:00
COPY --from=builder /srv/build /usr/share/jicofo
COPY jicofo /usr/local/bin
CMD ["/usr/local/bin/jicofo"]