ubuntu-18.04.dockerfile 1.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253
  1. # Start with 18.04
  2. FROM ubuntu:18.04
  3. # Add steps here to set up dependencies
  4. RUN apt-get update && 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-protobuf \
  22. python3-pytest \
  23. texinfo \
  24. wget \
  25. curl \
  26. libprotobuf-c-dev \
  27. protobuf-c-compiler
  28. # Add the user UID:1001, GID:1001, home at /leeroy
  29. RUN groupadd -r leeroy -g 1001 && useradd -u 1001 -r -g leeroy -m -d /leeroy -c "Leeroy Jenkins" leeroy && \
  30. chmod 755 /leeroy
  31. # Make sure /leeroy can be written by leeroy
  32. RUN chown 1001 /leeroy
  33. # Blow away any random state
  34. RUN rm -f /leeroy/.rnd
  35. # Make a directory for the intel driver
  36. RUN mkdir -p /opt/intel && chown 1001 /opt/intel
  37. # Set the working directory to leeroy home directory
  38. WORKDIR /leeroy
  39. # Specify the user to execute all commands below
  40. USER leeroy
  41. # Set environment variables.
  42. ENV HOME /leeroy
  43. # Define default command.
  44. CMD ["bash"]