ubuntu-16.04.dockerfile 1.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455
  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. build-essential \
  9. gawk \
  10. bison \
  11. gettext \
  12. git \
  13. libexpat1 \
  14. libexpat1-dev \
  15. libpcre3-dev \
  16. libxml2-dev \
  17. linux-headers-4.4.0-161-generic \
  18. net-tools \
  19. python \
  20. python-protobuf \
  21. python3-minimal \
  22. python3-pytest \
  23. texinfo \
  24. wget \
  25. curl \
  26. libomp-dev \
  27. libprotobuf-c-dev \
  28. protobuf-c-compiler \
  29. # Add the user UID:1001, GID:1001, home at /leeroy
  30. && groupadd -r leeroy -g 1001 \
  31. && useradd -u 1001 -r -g leeroy -m -d /leeroy -c "Leeroy Jenkins" leeroy \
  32. && chmod 755 /leeroy \
  33. # Make sure /leeroy can be written by leeroy
  34. && chown 1001 /leeroy \
  35. # Blow away any random state
  36. && rm -f /leeroy/.rnd \
  37. # Make a directory for the intel driver
  38. && mkdir -p /opt/intel && chown 1001 /opt/intel
  39. # Set the working directory to leeroy home directory
  40. WORKDIR /leeroy
  41. # Specify the user to execute all commands below
  42. USER leeroy
  43. # Set environment variables.
  44. ENV HOME /leeroy
  45. # Define default command.
  46. CMD ["bash"]