Dockerfile.arm64v8 1.3 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465
  1. FROM arm64v8/ubuntu:16.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. libgconf-2-4 \
  22. libgconf2-dev \
  23. libgnome-keyring-dev \
  24. libgtk2.0-0 \
  25. libgtk2.0-dev \
  26. libgtk-3-0 \
  27. libgtk-3-dev \
  28. libnotify-bin \
  29. libnss3 \
  30. libnss3-dev \
  31. libstdc++6:armhf \
  32. libxss1 \
  33. libxtst-dev \
  34. libxtst6 \
  35. lsb-release \
  36. locales \
  37. nano \
  38. python-setuptools \
  39. python-pip \
  40. python-dbusmock \
  41. sudo \
  42. unzip \
  43. wget \
  44. xvfb \
  45. && rm -rf /var/lib/apt/lists/*
  46. # Install Node.js
  47. RUN curl -sL https://deb.nodesource.com/setup_10.x | bash - \
  48. && DEBIAN_FRONTEND=noninteractive apt-get install -y nodejs \
  49. && rm -rf /var/lib/apt/lists/*
  50. # crcmod is required by gsutil, which is used for filling the gclient git cache
  51. RUN pip install -U crcmod
  52. ADD tools/xvfb-init.sh /etc/init.d/xvfb
  53. RUN chmod a+x /etc/init.d/xvfb
  54. RUN usermod -aG sudo builduser
  55. RUN echo 'builduser ALL=(ALL:ALL) NOPASSWD:ALL' >> /etc/sudoers
  56. WORKDIR /home/builduser