Dockerfile 1.2 KB

1234567891011121314151617181920212223242526272829303132
  1. FROM debian:stretch-slim
  2. ARG JITSI_RELEASE=stable
  3. ARG FREP_VERSION=1.3.11
  4. ENV S6_BEHAVIOUR_IF_STAGE2_FAILS=2
  5. COPY rootfs /
  6. RUN \
  7. apt-dpkg-wrap apt-get update && \
  8. apt-dpkg-wrap apt-get install -y apt-transport-https apt-utils ca-certificates gnupg && \
  9. apt-dpkg-wrap apt-get install -y wget && \
  10. wget -qO - https://github.com/just-containers/s6-overlay/releases/download/v1.22.1.0/s6-overlay-amd64.tar.gz | tar xfz - -C / && \
  11. wget -qO - https://download.jitsi.org/jitsi-key.gpg.key | apt-key add - && \
  12. wget -q https://github.com/subchen/frep/releases/download/v$FREP_VERSION/frep-$FREP_VERSION-linux-amd64 -O /usr/bin/frep && \
  13. apt-dpkg-wrap apt-get --purge remove -y wget && \
  14. echo "deb https://download.jitsi.org $JITSI_RELEASE/" > /etc/apt/sources.list.d/jitsi.list && \
  15. echo "deb http://ftp.debian.org/debian stretch-backports main" > /etc/apt/sources.list.d/backports.list && \
  16. apt-dpkg-wrap apt-get update && \
  17. apt-dpkg-wrap apt-get dist-upgrade -y && \
  18. apt-cleanup && \
  19. chmod +x /usr/bin/frep
  20. RUN \
  21. [ "$JITSI_RELEASE" = "unstable" ] && \
  22. apt-dpkg-wrap apt-get update && \
  23. apt-dpkg-wrap apt-get install -y jq procps curl vim iputils-ping net-tools && \
  24. apt-cleanup || \
  25. true
  26. ENTRYPOINT [ "/init" ]