ubuntu-16.04.dockerfile 1.1 KB

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