Dockerfile 1.4 KB

123456789101112131415161718192021222324252627282930313233
  1. FROM docker.io/library/debian:bookworm-slim
  2. ARG JITSI_RELEASE=stable
  3. ARG TARGETPLATFORM
  4. ENV S6_BEHAVIOUR_IF_STAGE2_FAILS=2
  5. COPY rootfs /
  6. RUN <<-EOF
  7. set -xe
  8. case ${TARGETPLATFORM} in \
  9. "linux/amd64") TPL_ARCH=amd64 ;; \
  10. "linux/arm64") TPL_ARCH=arm64 ;; \
  11. esac
  12. case ${TARGETPLATFORM} in \
  13. "linux/amd64") S6_ARCH=amd64 ;; \
  14. "linux/arm64") S6_ARCH=aarch64 ;; \
  15. esac
  16. apt-dpkg-wrap apt-get update
  17. apt-dpkg-wrap apt-get install -y apt-transport-https apt-utils ca-certificates gnupg lsb-release wget
  18. wget -qO /usr/bin/tpl https://github.com/jitsi/tpl/releases/download/v1.0.4/tpl-linux-${TPL_ARCH}
  19. wget -qO - https://github.com/just-containers/s6-overlay/releases/download/v1.22.1.0/s6-overlay-${S6_ARCH}.tar.gz | tar hxfz - -C /
  20. wget -qO - https://download.jitsi.org/jitsi-key.gpg.key | gpg --dearmour > /etc/apt/trusted.gpg.d/jitsi.gpg
  21. echo "deb https://download.jitsi.org $JITSI_RELEASE/" > /etc/apt/sources.list.d/jitsi.list
  22. echo "deb http://ftp.debian.org/debian $(lsb_release -sc)-backports main" > /etc/apt/sources.list.d/backports.list
  23. apt-dpkg-wrap apt-get update
  24. apt-dpkg-wrap apt-get dist-upgrade -y
  25. [ "$JITSI_RELEASE" = "unstable" ] && apt-dpkg-wrap apt-get install -y jq procps curl vim iputils-ping net-tools || true
  26. apt-cleanup
  27. chmod +x /usr/bin/tpl
  28. EOF
  29. ENTRYPOINT [ "/init" ]