ubuntu-16.04.dockerfile 1.3 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556
  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. python3-pip \
  21. python3-minimal \
  22. python3-pytest \
  23. texinfo \
  24. wget \
  25. curl \
  26. libomp-dev \
  27. libprotobuf-c-dev \
  28. protobuf-c-compiler \
  29. && /usr/bin/pip3 install protobuf \
  30. # Add the user UID:1001, GID:1001, home at /leeroy
  31. && groupadd -r leeroy -g 1001 \
  32. && useradd -u 1001 -r -g leeroy -m -d /leeroy -c "Leeroy Jenkins" leeroy \
  33. && chmod 755 /leeroy \
  34. # Make sure /leeroy can be written by leeroy
  35. && chown 1001 /leeroy \
  36. # Blow away any random state
  37. && rm -f /leeroy/.rnd \
  38. # Make a directory for the intel driver
  39. && mkdir -p /opt/intel && chown 1001 /opt/intel
  40. # Set the working directory to leeroy home directory
  41. WORKDIR /leeroy
  42. # Specify the user to execute all commands below
  43. USER leeroy
  44. # Set environment variables.
  45. ENV HOME /leeroy
  46. # Define default command.
  47. CMD ["bash"]