aboutsummaryrefslogtreecommitdiff
path: root/cluster/prod/app/jitsi/build/jitsi-meet/Dockerfile
blob: 32081a2b9bbb5a10698881c07dbea86c8e3ccaab (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
FROM debian:bookworm AS builder

ARG NODE_MAJOR_VERSION
RUN apt-get update && \
    apt-get install -y curl && \
    curl -sL https://deb.nodesource.com/setup_${NODE_MAJOR_VERSION}.x | bash - && \
    apt-get install -y git nodejs make git unzip

ARG MEET_TAG
RUN git clone --depth 1 --branch ${MEET_TAG} https://github.com/jitsi/jitsi-meet

WORKDIR jitsi-meet
# @FIXME read the following SO post to understand why we declare this option
# https://stackoverflow.com/a/73027407 
COPY *.patch .
RUN git apply 0001-allow-broken-openssl-routines.patch
RUN npm install && \
    make

FROM debian:bookworm

COPY --from=builder /jitsi-meet /srv/jitsi-meet
RUN apt-get update && \
    apt-get install -y nginx && \
    rm /etc/nginx/sites-enabled/* && \
    rm /etc/nginx/nginx.conf

CMD ["/usr/sbin/nginx", "-g", "daemon off;"]