2
0

Dockerfile 1.4 KB

123456789101112131415161718192021222324252627282930313233
  1. FROM docker.io/library/debian:bullseye-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.1.1/tpl-linux-${TPL_ARCH} && \
  15. wget -qO - https://github.com/just-containers/s6-overlay/releases/download/v1.22.1.0/s6-overlay-${S6_ARCH}.tar.gz | tar xfz - -C / && \
  16. wget -qO - https://download.jitsi.org/jitsi-key.gpg.key | gpg --dearmour > /etc/apt/trusted.gpg.d/jitsi.gpg && \
  17. echo "deb https://download.jitsi.org $JITSI_RELEASE/" > /etc/apt/sources.list.d/jitsi.list && \
  18. echo "deb http://ftp.debian.org/debian bullseye-backports main" > /etc/apt/sources.list.d/backports.list && \
  19. apt-dpkg-wrap apt-get update && \
  20. apt-dpkg-wrap apt-get dist-upgrade -y && \
  21. apt-cleanup && \
  22. chmod +x /usr/bin/tpl
  23. RUN [ "$JITSI_RELEASE" = "unstable" ] && \
  24. apt-dpkg-wrap apt-get update && \
  25. apt-dpkg-wrap apt-get install -y jq procps curl vim iputils-ping net-tools && \
  26. apt-cleanup || \
  27. true
  28. ENTRYPOINT [ "/init" ]