ubuntu-16.04.dockerfile 1.5 KB

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