ubuntu-16.04.dockerfile 1.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475
  1. # Start with 16.04
  2. FROM ubuntu:16.04
  3. # Add steps here to set up dependencies
  4. RUN apt-get update \
  5. && apt-get install -y \
  6. apache2-utils \
  7. autoconf \
  8. bison \
  9. build-essential \
  10. curl \
  11. flex \
  12. gawk \
  13. gettext \
  14. git \
  15. libapr1-dev \
  16. libaprutil1-dev \
  17. libexpat1 \
  18. libexpat1-dev \
  19. libnss-mdns \
  20. libnuma1 \
  21. libomp-dev \
  22. libpcre2-dev \
  23. libpcre3-dev \
  24. libprotobuf-c-dev \
  25. libssl-dev \
  26. libxfixes3 \
  27. libxi6 \
  28. libxml2-dev \
  29. libxrender1 \
  30. libxxf86vm1 \
  31. linux-headers-4.4.0-161-generic \
  32. net-tools \
  33. protobuf-c-compiler \
  34. python \
  35. python3-apport \
  36. python3-apt \
  37. python3-lxml \
  38. python3-minimal \
  39. python3-numpy \
  40. python3-pip \
  41. python3-pytest \
  42. python3-scipy \
  43. shellcheck \
  44. texinfo \
  45. wget \
  46. zlib1g \
  47. zlib1g-dev \
  48. && /usr/bin/pip3 install protobuf \
  49. # Add the user UID:1001, GID:1001, home at /leeroy
  50. && groupadd -r leeroy -g 1001 \
  51. && useradd -u 1001 -r -g leeroy -m -d /leeroy -c "Leeroy Jenkins" leeroy \
  52. && chmod 755 /leeroy \
  53. # Make sure /leeroy can be written by leeroy
  54. && chown 1001 /leeroy \
  55. # Blow away any random state
  56. && rm -f /leeroy/.rnd \
  57. # Make a directory for the intel driver
  58. && mkdir -p /opt/intel && chown 1001 /opt/intel
  59. # Set the working directory to leeroy home directory
  60. WORKDIR /leeroy
  61. # Specify the user to execute all commands below
  62. USER leeroy
  63. # Set environment variables.
  64. ENV HOME /leeroy
  65. # Define default command.
  66. CMD ["bash"]