jitsi-deployment/base/Dockerfile

32 lines
1.2 KiB
Docker
Raw Permalink Normal View History

2018-03-14 10:23:13 +01:00
FROM debian:stretch-slim
2018-05-03 08:50:13 +02:00
ARG JITSI_RELEASE=stable
2018-03-14 10:23:13 +01:00
ENV S6_BEHAVIOUR_IF_STAGE2_FAILS=2
2018-03-14 10:23:13 +01:00
COPY rootfs /
RUN \
apt-dpkg-wrap apt-get update && \
apt-dpkg-wrap apt-get install -y apt-transport-https apt-utils ca-certificates gnupg && \
apt-dpkg-wrap apt-get install -y wget && \
wget -qO - https://github.com/just-containers/s6-overlay/releases/download/v1.22.1.0/s6-overlay-amd64.tar.gz | tar xfz - -C / && \
wget -qO - https://download.jitsi.org/jitsi-key.gpg.key | apt-key add - && \
wget -q https://github.com/subchen/frep/releases/download/v1.3.5/frep-1.3.5-linux-amd64 -O /usr/bin/frep && \
apt-dpkg-wrap apt-get --purge remove -y wget && \
2018-03-14 10:23:13 +01:00
echo "deb https://download.jitsi.org $JITSI_RELEASE/" > /etc/apt/sources.list.d/jitsi.list && \
2018-11-07 09:28:08 +01:00
echo "deb http://ftp.debian.org/debian stretch-backports main" > /etc/apt/sources.list.d/backports.list && \
2018-03-14 10:23:13 +01:00
apt-dpkg-wrap apt-get update && \
apt-dpkg-wrap apt-get dist-upgrade -y && \
apt-cleanup && \
chmod +x /usr/bin/frep
2018-03-14 10:23:13 +01:00
RUN \
[ "$JITSI_RELEASE" = "unstable" ] && \
apt-dpkg-wrap apt-get update && \
apt-dpkg-wrap apt-get install -y jq procps curl vim iputils-ping net-tools && \
apt-cleanup || \
true
2018-03-14 10:23:13 +01:00
ENTRYPOINT [ "/init" ]