Dockerfile 1.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051
  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=90.0.4430.212
  7. ARG CHROMEDRIVER_MAJOR_RELEASE=90
  8. SHELL ["/bin/bash", "-o", "pipefail", "-c"]
  9. RUN \
  10. apt-dpkg-wrap apt-get update \
  11. && apt-dpkg-wrap apt-get install -y jibri libgl1-mesa-dri procps \
  12. && apt-cleanup
  13. RUN \
  14. [ "${CHROME_RELEASE}" = "latest" ] \
  15. && wget -q https://dl-ssl.google.com/linux/linux_signing_key.pub -O /etc/apt/trusted.gpg.d/google.asc \
  16. && echo "deb [arch=amd64] http://dl.google.com/linux/chrome/deb/ stable main" > /etc/apt/sources.list.d/google-chrome.list \
  17. && apt-dpkg-wrap apt-get update \
  18. && apt-dpkg-wrap apt-get install -y google-chrome-stable \
  19. && apt-cleanup \
  20. || true
  21. RUN \
  22. [ "${CHROME_RELEASE}" != "latest" ] \
  23. && 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" \
  24. && apt-dpkg-wrap apt-get update \
  25. && apt-dpkg-wrap apt-get install -y "/tmp/google-chrome-stable_${CHROME_RELEASE}-1_amd64.deb" \
  26. && apt-cleanup \
  27. || true
  28. RUN \
  29. [ "${CHROMEDRIVER_MAJOR_RELEASE}" = "latest" ] \
  30. && CHROMEDRIVER_RELEASE="$(curl -4Ls https://chromedriver.storage.googleapis.com/LATEST_RELEASE)" \
  31. || CHROMEDRIVER_RELEASE="$(curl -4Ls https://chromedriver.storage.googleapis.com/LATEST_RELEASE_${CHROMEDRIVER_MAJOR_RELEASE})" \
  32. && curl -4Ls "https://chromedriver.storage.googleapis.com/${CHROMEDRIVER_RELEASE}/chromedriver_linux64.zip" \
  33. | zcat >> /usr/bin/chromedriver \
  34. && chmod +x /usr/bin/chromedriver \
  35. && chromedriver --version
  36. RUN \
  37. apt-dpkg-wrap apt-get update \
  38. && apt-dpkg-wrap apt-get install -y jitsi-upload-integrations jq \
  39. && apt-cleanup
  40. COPY rootfs/ /
  41. VOLUME /config