Dockerfile 1.2 KB

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