ubuntu-16.04.dockerfile 1.2 KB

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