Dockerfile.arm64v8 1.3 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465
  1. FROM arm64v8/ubuntu:18.04
  2. RUN groupadd --gid 1000 builduser \
  3. && useradd --uid 1000 --gid builduser --shell /bin/bash --create-home builduser
  4. # Set up TEMP directory
  5. ENV TEMP=/tmp
  6. RUN chmod a+rwx /tmp
  7. RUN dpkg --add-architecture armhf
  8. RUN apt-get update && DEBIAN_FRONTEND=noninteractive apt-get install -y \
  9. bison \
  10. build-essential \
  11. clang \
  12. curl \
  13. gperf \
  14. git \
  15. libasound2 \
  16. libasound2-dev \
  17. libc6:armhf \
  18. libcap-dev \
  19. libcups2-dev \
  20. libdbus-1-dev \
  21. libgnome-keyring-dev \
  22. libgtk2.0-0 \
  23. libgtk2.0-dev \
  24. libgtk-3-0 \
  25. libgtk-3-dev \
  26. libnotify-bin \
  27. libnss3 \
  28. libnss3-dev \
  29. libstdc++6:armhf \
  30. libxss1 \
  31. libxtst-dev \
  32. libxtst6 \
  33. lsb-release \
  34. locales \
  35. nano \
  36. python-setuptools \
  37. python-pip \
  38. sudo \
  39. unzip \
  40. wget \
  41. xvfb \
  42. && rm -rf /var/lib/apt/lists/*
  43. # Install Node.js
  44. RUN curl -sL https://deb.nodesource.com/setup_10.x | bash - \
  45. && DEBIAN_FRONTEND=noninteractive apt-get install -y nodejs \
  46. && rm -rf /var/lib/apt/lists/*
  47. # crcmod is required by gsutil, which is used for filling the gclient git cache
  48. RUN pip install -U crcmod
  49. # dbusmock is needed for Electron tests
  50. RUN pip install python-dbusmock
  51. ADD tools/xvfb-init.sh /etc/init.d/xvfb
  52. RUN chmod a+x /etc/init.d/xvfb
  53. RUN usermod -aG sudo builduser
  54. RUN echo 'builduser ALL=(ALL:ALL) NOPASSWD:ALL' >> /etc/sudoers
  55. WORKDIR /home/builduser