ubuntu-16.04.dockerfile 1.5 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970
  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. libomp-dev \
  21. libpcre2-dev \
  22. libpcre3-dev \
  23. libprotobuf-c-dev \
  24. libssl-dev \
  25. libxml2-dev \
  26. linux-headers-4.4.0-161-generic \
  27. net-tools \
  28. protobuf-c-compiler \
  29. python \
  30. python3-apport \
  31. python3-apt \
  32. python3-lxml \
  33. python3-minimal \
  34. python3-numpy \
  35. python3-pip \
  36. python3-pytest \
  37. python3-scipy \
  38. shellcheck \
  39. texinfo \
  40. wget \
  41. zlib1g \
  42. zlib1g-dev \
  43. && /usr/bin/pip3 install protobuf \
  44. # Add the user UID:1001, GID:1001, home at /leeroy
  45. && groupadd -r leeroy -g 1001 \
  46. && useradd -u 1001 -r -g leeroy -m -d /leeroy -c "Leeroy Jenkins" leeroy \
  47. && chmod 755 /leeroy \
  48. # Make sure /leeroy can be written by leeroy
  49. && chown 1001 /leeroy \
  50. # Blow away any random state
  51. && rm -f /leeroy/.rnd \
  52. # Make a directory for the intel driver
  53. && mkdir -p /opt/intel && chown 1001 /opt/intel
  54. # Set the working directory to leeroy home directory
  55. WORKDIR /leeroy
  56. # Specify the user to execute all commands below
  57. USER leeroy
  58. # Set environment variables.
  59. ENV HOME /leeroy
  60. # Define default command.
  61. CMD ["bash"]