Dockerfile 1.8 KB

123456789101112131415161718192021222324252627282930313233343536373839
  1. ARG JITSI_REPO=jitsi
  2. ARG BASE_TAG=latest
  3. FROM ${JITSI_REPO}/base-java:${BASE_TAG}
  4. #ARG CHROME_RELEASE=latest
  5. #ARG CHROMEDRIVER_MAJOR_RELEASE=latest
  6. ARG CHROME_RELEASE=96.0.4664.45
  7. ARG CHROMEDRIVER_MAJOR_RELEASE=96
  8. SHELL ["/bin/bash", "-o", "pipefail", "-c"]
  9. RUN apt-dpkg-wrap apt-get update && \
  10. apt-dpkg-wrap apt-get install -y jibri libgl1-mesa-dri procps && \
  11. apt-cleanup && \
  12. [ "${CHROME_RELEASE}" = "latest" ] && \
  13. wget -qO - https://dl-ssl.google.com/linux/linux_signing_key.pub | gpg --dearmour /etc/apt/trusted.gpg.d/google.gpg && \
  14. echo "deb [arch=amd64] http://dl.google.com/linux/chrome/deb/ stable main" > /etc/apt/sources.list.d/google-chrome.list && \
  15. apt-dpkg-wrap apt-get update && \
  16. apt-dpkg-wrap apt-get install -y google-chrome-stable && \
  17. apt-cleanup || \
  18. [ "${CHROME_RELEASE}" != "latest" ] && \
  19. curl -4so "/tmp/google-chrome-stable_${CHROME_RELEASE}-1_amd64.deb" "http://dl.google.com/linux/chrome/deb/pool/main/g/google-chrome-stable/google-chrome-stable_${CHROME_RELEASE}-1_amd64.deb" && \
  20. apt-dpkg-wrap apt-get update && \
  21. apt-dpkg-wrap apt-get install -y "/tmp/google-chrome-stable_${CHROME_RELEASE}-1_amd64.deb" && \
  22. apt-cleanup || \
  23. [ "${CHROMEDRIVER_MAJOR_RELEASE}" = "latest" ] && \
  24. CHROMEDRIVER_RELEASE="$(curl -4Ls https://chromedriver.storage.googleapis.com/LATEST_RELEASE)" || \
  25. CHROMEDRIVER_RELEASE="$(curl -4Ls https://chromedriver.storage.googleapis.com/LATEST_RELEASE_${CHROMEDRIVER_MAJOR_RELEASE})" && \
  26. curl -4Ls "https://chromedriver.storage.googleapis.com/${CHROMEDRIVER_RELEASE}/chromedriver_linux64.zip" \
  27. | zcat >> /usr/bin/chromedriver && \
  28. chmod +x /usr/bin/chromedriver && \
  29. chromedriver --version && \
  30. apt-dpkg-wrap apt-get update && \
  31. apt-dpkg-wrap apt-get install -y jitsi-upload-integrations jq && \
  32. apt-cleanup
  33. COPY rootfs/ /
  34. VOLUME /config