Dockerfile 1.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748
  1. ARG JITSI_REPO=jitsi
  2. FROM ${JITSI_REPO}/base-java
  3. #ARG CHROME_RELEASE=latest
  4. #ARG CHROMEDRIVER_MAJOR_RELEASE=latest
  5. ARG CHROME_RELEASE=78.0.3904.97
  6. ARG CHROMEDRIVER_MAJOR_RELEASE=78
  7. RUN \
  8. apt-dpkg-wrap apt-get update \
  9. && apt-dpkg-wrap apt-get install -y jibri libgl1-mesa-dri \
  10. && apt-cleanup
  11. RUN \
  12. [ "${CHROME_RELEASE}" = "latest" ] \
  13. && curl -4s https://dl-ssl.google.com/linux/linux_signing_key.pub | apt-key add - \
  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. || true
  19. RUN \
  20. [ "${CHROME_RELEASE}" != "latest" ] \
  21. && 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 \
  22. && apt-dpkg-wrap apt-get update \
  23. && apt-dpkg-wrap apt-get install -y /tmp/google-chrome-stable_${CHROME_RELEASE}-1_amd64.deb \
  24. && apt-cleanup \
  25. || true
  26. RUN \
  27. [ "${CHROMEDRIVER_MAJOR_RELEASE}" = "latest" ] \
  28. && CHROMEDRIVER_RELEASE="$(curl -4Ls https://chromedriver.storage.googleapis.com/LATEST_RELEASE)" \
  29. || CHROMEDRIVER_RELEASE="$(curl -4Ls https://chromedriver.storage.googleapis.com/LATEST_RELEASE_${CHROMEDRIVER_MAJOR_RELEASE})" \
  30. && curl -4Ls https://chromedriver.storage.googleapis.com/${CHROMEDRIVER_RELEASE}/chromedriver_linux64.zip \
  31. | zcat >> /usr/bin/chromedriver \
  32. && chmod +x /usr/bin/chromedriver \
  33. && chromedriver --version
  34. RUN \
  35. apt-dpkg-wrap apt-get update \
  36. && apt-dpkg-wrap apt-get install -y jitsi-upload-integrations jq \
  37. && apt-cleanup
  38. COPY rootfs/ /
  39. VOLUME /config