ubuntu-18.04.dockerfile 1.5 KB

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