2
0

Dockerfile 1.4 KB

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