2021-10-29 13:49:34 +02:00
|
|
|
FROM ubuntu:20.04
|
2017-12-06 21:35:38 +01:00
|
|
|
|
2020-11-16 15:09:13 +01:00
|
|
|
LABEL maintainer="info@openvidu.io"
|
2017-10-18 17:41:46 +02:00
|
|
|
|
|
|
|
USER root
|
|
|
|
|
2017-12-06 21:35:38 +01:00
|
|
|
RUN apt-get update && apt-get -y upgrade
|
|
|
|
|
2021-11-02 11:20:00 +01:00
|
|
|
RUN apt-get install -y \
|
|
|
|
software-properties-common \
|
|
|
|
ca-certificates \
|
|
|
|
curl \
|
|
|
|
gnupg \
|
|
|
|
lsb-release && \
|
|
|
|
apt-get install -y --no-install-recommends apt-utils
|
2017-10-18 17:41:46 +02:00
|
|
|
|
|
|
|
# Install Node
|
2021-11-02 11:20:00 +01:00
|
|
|
RUN curl -sL https://deb.nodesource.com/setup_16.x | bash - && apt-get install -y nodejs
|
2017-12-06 21:35:38 +01:00
|
|
|
|
2020-11-15 23:17:51 +01:00
|
|
|
# Java 11
|
|
|
|
RUN apt-get install -y openjdk-11-jdk-headless
|
2017-12-06 21:35:38 +01:00
|
|
|
|
|
|
|
# Maven
|
|
|
|
RUN apt-get install -y maven
|
|
|
|
|
|
|
|
# git
|
|
|
|
RUN apt-get install -y git
|
|
|
|
|
|
|
|
# http-server
|
2018-10-27 01:53:56 +02:00
|
|
|
RUN npm install -g http-server@latest
|
2017-12-06 21:35:38 +01:00
|
|
|
|
|
|
|
# sudo
|
|
|
|
RUN apt-get -y install sudo
|
|
|
|
|
2019-01-29 00:08:52 +01:00
|
|
|
# ffmpeg (for ffprobe)
|
|
|
|
RUN apt-get install -y ffmpeg
|
|
|
|
|
2020-07-02 17:11:18 +02:00
|
|
|
# docker
|
2021-11-02 11:20:00 +01:00
|
|
|
RUN curl -fsSL https://download.docker.com/linux/ubuntu/gpg | gpg --dearmor -o /usr/share/keyrings/docker-archive-keyring.gpg && \
|
|
|
|
echo "deb [arch=$(dpkg --print-architecture) signed-by=/usr/share/keyrings/docker-archive-keyring.gpg] https://download.docker.com/linux/ubuntu focal stable" | tee /etc/apt/sources.list.d/docker.list > /dev/null && \
|
|
|
|
apt-get update && apt-get install -y docker-ce docker-ce-cli containerd.io
|
2020-07-02 17:11:18 +02:00
|
|
|
|
2017-12-06 21:35:38 +01:00
|
|
|
# Cleanup
|
|
|
|
RUN rm -rf /var/lib/apt/lists/*
|
2020-07-02 17:11:18 +02:00
|
|
|
RUN apt-get autoremove --purge -y && apt-get autoclean
|
2017-10-18 17:41:46 +02:00
|
|
|
|
2017-12-06 21:35:38 +01:00
|
|
|
COPY entrypoint.sh /entrypoint.sh
|
|
|
|
RUN ["chmod", "+x", "/entrypoint.sh"]
|
2017-10-18 17:41:46 +02:00
|
|
|
|
2017-12-06 21:35:38 +01:00
|
|
|
ENTRYPOINT ["/entrypoint.sh"]
|