Dockerfile 1.8 KB

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