Dockerfile 1.1 KB

1234567891011121314151617181920212223242526272829303132
  1. FROM debian:stretch-slim
  2. ARG JITSI_RELEASE=stable
  3. ADD https://github.com/just-containers/s6-overlay/releases/download/v1.21.4.0/s6-overlay-amd64.tar.gz /tmp/s6-overlay.tar.gz
  4. ADD https://download.jitsi.org/jitsi-key.gpg.key /tmp/jitsi.key
  5. ADD https://github.com/subchen/frep/releases/download/v1.3.5/frep-1.3.5-linux-amd64 /usr/bin/frep
  6. COPY rootfs /
  7. RUN \
  8. tar xfz /tmp/s6-overlay.tar.gz -C / && \
  9. rm -f /tmp/*.tar.gz && \
  10. apt-dpkg-wrap apt-get update && \
  11. apt-dpkg-wrap apt-get install -y apt-transport-https apt-utils ca-certificates gnupg && \
  12. apt-key add /tmp/jitsi.key && \
  13. rm -f /tmp/jitsi.key && \
  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" ]