ubuntu-16.04.dockerfile 1.1 KB

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