Dockerfile 1.7 KB

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