ubuntu-18.04.dockerfile 1.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172
  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. bison \
  8. build-essential \
  9. curl \
  10. flex \
  11. gawk \
  12. gettext \
  13. git \
  14. libapr1-dev \
  15. libaprutil1-dev \
  16. libelf-dev \
  17. libexpat1 \
  18. libexpat1-dev \
  19. libnss-mdns \
  20. libomp-dev \
  21. libpcre2-dev \
  22. libpcre3-dev \
  23. libprotobuf-c-dev \
  24. libssl-dev \
  25. libxml2-dev \
  26. linux-headers-4.15.0-20-generic \
  27. net-tools \
  28. protobuf-c-compiler \
  29. pylint3 \
  30. python \
  31. python3-apport \
  32. python3-apt \
  33. python3-breathe \
  34. python3-lxml \
  35. python3-numpy \
  36. python3-pip \
  37. python3-protobuf \
  38. python3-pytest \
  39. python3-scipy \
  40. shellcheck \
  41. texinfo \
  42. wget \
  43. zlib1g \
  44. zlib1g-dev
  45. RUN pip3 install 'Sphinx>=1.8' sphinx_rtd_theme recommonmark
  46. # Add the user UID:1001, GID:1001, home at /leeroy
  47. RUN groupadd -r leeroy -g 1001 && useradd -u 1001 -r -g leeroy -m -d /leeroy -c "Leeroy Jenkins" leeroy && \
  48. chmod 755 /leeroy
  49. # Make sure /leeroy can be written by leeroy
  50. RUN chown 1001 /leeroy
  51. # Blow away any random state
  52. RUN rm -f /leeroy/.rnd
  53. # Make a directory for the intel driver
  54. RUN mkdir -p /opt/intel && chown 1001 /opt/intel
  55. # Set the working directory to leeroy home directory
  56. WORKDIR /leeroy
  57. # Specify the user to execute all commands below
  58. USER leeroy
  59. # Set environment variables.
  60. ENV HOME /leeroy
  61. # Define default command.
  62. CMD ["bash"]