2022-10-06 11:25:12 +02:00
|
|
|
FROM ubuntu:22.04
|
|
|
|
LABEL maintainer="OpenVidu info@openvidu.io"
|
|
|
|
|
|
|
|
ARG CHROME_VERSION
|
|
|
|
|
|
|
|
# Install packages
|
|
|
|
RUN apt update && apt -y upgrade && apt install -y \
|
|
|
|
wget \
|
|
|
|
sudo \
|
|
|
|
gnupg2 \
|
|
|
|
apt-utils \
|
|
|
|
software-properties-common \
|
|
|
|
ffmpeg \
|
|
|
|
pulseaudio \
|
|
|
|
xvfb \
|
|
|
|
jq \
|
|
|
|
# Language Fonts
|
|
|
|
ttf-ancient-fonts fonts-beng fonts-wqy-zenhei fonts-indic \
|
|
|
|
&& rm -rf /var/lib/apt/lists/*
|
|
|
|
|
|
|
|
# Install chrome
|
|
|
|
RUN apt update && apt -y upgrade && apt install -y wget sudo
|
|
|
|
RUN wget http://dl.google.com/linux/deb/pool/main/g/google-chrome-stable/google-chrome-stable_${CHROME_VERSION}_amd64.deb \
|
|
|
|
&& apt install -y ./google-chrome-stable_${CHROME_VERSION}_amd64.deb \
|
|
|
|
&& rm google-chrome-stable_${CHROME_VERSION}_amd64.deb \
|
|
|
|
&& google-chrome --version
|
|
|
|
|
|
|
|
# Add root user to pulseaudio group
|
|
|
|
RUN adduser root pulse-access
|
|
|
|
|
|
|
|
# Clean
|
|
|
|
RUN apt clean && apt autoclean && apt autoremove
|
|
|
|
|
2023-02-03 13:55:17 +01:00
|
|
|
COPY entrypoint.sh scripts/composed.sh scripts/composed_quick_start.sh scripts/broadcast.sh ./
|
2023-01-18 16:02:57 +01:00
|
|
|
COPY utils/xvfb-run-safe /usr/local/bin
|
|
|
|
COPY utils/headless-chrome.sh ./
|
2022-10-06 11:25:12 +02:00
|
|
|
|
|
|
|
# Prepare scripts and folders
|
2023-02-03 13:55:17 +01:00
|
|
|
RUN chmod +x /entrypoint.sh /composed.sh /composed_quick_start.sh /broadcast.sh /headless-chrome.sh \
|
2022-10-06 11:25:12 +02:00
|
|
|
&& chmod +x /usr/local/bin/xvfb-run-safe \
|
|
|
|
&& mkdir /recordings \
|
|
|
|
&& chmod 777 /recordings
|
|
|
|
|
|
|
|
ENTRYPOINT /entrypoint.sh
|