Dockerfile 1.2 KB

12345678910111213141516171819202122232425262728
  1. FROM debian:buster-slim
  2. ARG JITSI_RELEASE=stable
  3. ARG FREP_VERSION=1.3.11
  4. ENV S6_BEHAVIOUR_IF_STAGE2_FAILS=2
  5. COPY rootfs /
  6. RUN apt-dpkg-wrap apt-get update && \
  7. apt-dpkg-wrap apt-get install -y apt-transport-https apt-utils ca-certificates gnupg wget && \
  8. wget -qO - https://github.com/just-containers/s6-overlay/releases/download/v1.22.1.0/s6-overlay-amd64.tar.gz | tar xfz - -C / && \
  9. wget -qO - https://download.jitsi.org/jitsi-key.gpg.key | gpg --dearmour > /etc/apt/trusted.gpg.d/jitsi.gpg && \
  10. wget -qO /usr/bin/frep https://github.com/subchen/frep/releases/download/v$FREP_VERSION/frep-$FREP_VERSION-linux-amd64 && \
  11. echo "deb https://download.jitsi.org $JITSI_RELEASE/" > /etc/apt/sources.list.d/jitsi.list && \
  12. echo "deb http://ftp.debian.org/debian buster-backports main" > /etc/apt/sources.list.d/backports.list && \
  13. apt-dpkg-wrap apt-get update && \
  14. apt-dpkg-wrap apt-get dist-upgrade -y && \
  15. apt-cleanup && \
  16. chmod +x /usr/bin/frep
  17. RUN [ "$JITSI_RELEASE" = "unstable" ] && \
  18. apt-dpkg-wrap apt-get update && \
  19. apt-dpkg-wrap apt-get install -y jq procps curl vim iputils-ping net-tools && \
  20. apt-cleanup || \
  21. true
  22. ENTRYPOINT [ "/init" ]