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. RUN \
  6. apt-dpkg-wrap apt-get update \
  7. && apt-dpkg-wrap apt-get install -y jibri \
  8. && apt-cleanup
  9. RUN \
  10. [ "${CHROME_RELEASE}" = "latest" ] \
  11. && curl -4s https://dl-ssl.google.com/linux/linux_signing_key.pub | apt-key add - \
  12. && echo "deb [arch=amd64] http://dl.google.com/linux/chrome/deb/ stable main" > /etc/apt/sources.list.d/google-chrome.list \
  13. && apt-dpkg-wrap apt-get update \
  14. && apt-dpkg-wrap apt-get install -y google-chrome-stable \
  15. && apt-cleanup \
  16. || true
  17. RUN \
  18. [ "${CHROME_RELEASE}" != "latest" ] \
  19. && curl -4so /tmp/google-chrome-stable_${CHROME_RELEASE}_amd64.deb http://dl.google.com/linux/chrome/deb/pool/main/g/google-chrome-stable/google-chrome-stable_${CHROME_RELEASE}_amd64.deb \
  20. && apt-dpkg-wrap apt-get update \
  21. && apt-dpkg-wrap apt-get install -y /tmp/google-chrome-stable_${CHROME_RELEASE}_amd64.deb \
  22. && apt-cleanup \
  23. || true
  24. RUN \
  25. [ "${CHROMEDRIVER_MAJOR_RELEASE}" = "latest" ] \
  26. && CHROMEDRIVER_RELEASE="$(curl -4Ls https://chromedriver.storage.googleapis.com/LATEST_RELEASE)" \
  27. || CHROMEDRIVER_RELEASE="$(curl -4Ls https://chromedriver.storage.googleapis.com/LATEST_RELEASE_${CHROMEDRIVER_MAJOR_RELEASE})" \
  28. && curl -4Ls https://chromedriver.storage.googleapis.com/${CHROMEDRIVER_RELEASE}/chromedriver_linux64.zip \
  29. | zcat >> /usr/bin/chromedriver \
  30. && chmod +x /usr/bin/chromedriver \
  31. && chromedriver --version
  32. RUN \
  33. [ "$JITSI_RELEASE" = "unstable" ] \
  34. && apt-dpkg-wrap apt-get update \
  35. && apt-dpkg-wrap apt-get install -y jitsi-upload-integrations \
  36. && apt-cleanup \
  37. || true
  38. COPY rootfs/ /
  39. VOLUME /config