ubuntu-18.04.dockerfile 1.6 KB

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