ubuntu-16.04.dockerfile 1.1 KB

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