ubuntu-18.04.dockerfile 1.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657
  1. # Start with 18.04
  2. FROM ubuntu:18.04
  3. # Add steps here to set up dependencies
  4. RUN apt-get update && env DEBIAN_FRONTEND=noninteractive apt-get install -y \
  5. apache2-utils \
  6. autoconf \
  7. build-essential \
  8. gawk \
  9. bison \
  10. gettext \
  11. git \
  12. libelf-dev \
  13. libexpat1 \
  14. libexpat1-dev \
  15. libomp-dev \
  16. libpcre3-dev \
  17. libxml2-dev \
  18. linux-headers-4.15.0-20-generic \
  19. net-tools \
  20. python \
  21. python3-pip \
  22. python3-protobuf \
  23. python3-pytest \
  24. python3-breathe \
  25. texinfo \
  26. wget \
  27. curl \
  28. libprotobuf-c-dev \
  29. protobuf-c-compiler
  30. RUN pip3 install 'Sphinx>=1.8' sphinx_rtd_theme recommonmark
  31. # Add the user UID:1001, GID:1001, home at /leeroy
  32. RUN groupadd -r leeroy -g 1001 && 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. RUN chown 1001 /leeroy
  36. # Blow away any random state
  37. RUN rm -f /leeroy/.rnd
  38. # Make a directory for the intel driver
  39. RUN 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"]