Dockerfile 1.7 KB

12345678910111213141516171819202122232425262728293031323334353637383940
  1. FROM docker.io/library/debian:bookworm-slim
  2. ARG JITSI_RELEASE=stable
  3. ENV S6_BEHAVIOUR_IF_STAGE2_FAILS=2
  4. COPY rootfs /
  5. RUN \
  6. dpkgArch="$(dpkg --print-architecture)" && \
  7. case "${dpkgArch##*-}" in \
  8. "amd64") TPL_ARCH=amd64; S6_ARCH=amd64 ;; \
  9. "arm64") TPL_ARCH=arm64; S6_ARCH=aarch64 ;; \
  10. *) echo "unsupported architecture"; exit 1 ;; \
  11. esac && \
  12. apt-dpkg-wrap apt-get update && \
  13. apt-dpkg-wrap apt-get install -y apt-transport-https apt-utils ca-certificates gnupg wget && \
  14. wget -qO /usr/bin/tpl https://github.com/jitsi/tpl/releases/download/v1.2.0/tpl-linux-${TPL_ARCH} && \
  15. # Workaround S6 bug when /bin is a symlink
  16. wget -qO /tmp/s6.tar.gz https://github.com/just-containers/s6-overlay/releases/download/v1.22.1.0/s6-overlay-${S6_ARCH}.tar.gz && \
  17. mkdir /tmp/s6 && \
  18. tar xfz /tmp/s6.tar.gz -C /tmp/s6 && \
  19. tar hxfz /tmp/s6.tar.gz -C / && \
  20. rm -f /usr/bin/execlineb && \
  21. cp /tmp/s6/bin/execlineb /usr/bin/ && \
  22. rm -rf /tmp/s6* && \
  23. wget -qO - https://download.jitsi.org/jitsi-key.gpg.key | gpg --dearmour > /etc/apt/trusted.gpg.d/jitsi.gpg && \
  24. echo "deb https://download.jitsi.org $JITSI_RELEASE/" > /etc/apt/sources.list.d/jitsi.list && \
  25. echo "deb http://ftp.debian.org/debian bookworm-backports main" > /etc/apt/sources.list.d/backports.list && \
  26. apt-dpkg-wrap apt-get update && \
  27. apt-dpkg-wrap apt-get dist-upgrade -y && \
  28. apt-cleanup && \
  29. chmod +x /usr/bin/tpl
  30. RUN [ "$JITSI_RELEASE" = "unstable" ] && \
  31. apt-dpkg-wrap apt-get update && \
  32. apt-dpkg-wrap apt-get install -y jq procps curl vim iputils-ping net-tools && \
  33. apt-cleanup || \
  34. true
  35. ENTRYPOINT [ "/init" ]