ubuntu-18.04.dockerfile 1.0 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849
  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. libexpat1 \
  13. libexpat1-dev \
  14. libomp-dev \
  15. libpcre3-dev \
  16. libxml2-dev \
  17. linux-headers-generic \
  18. net-tools \
  19. python \
  20. python-protobuf \
  21. python3-pytest \
  22. texinfo \
  23. wget
  24. # Add the user UID:1001, GID:1001, home at /leeroy
  25. RUN groupadd -r leeroy -g 1001 && useradd -u 1001 -r -g leeroy -m -d /leeroy -c "Leeroy Jenkins" leeroy && \
  26. chmod 755 /leeroy
  27. # Make sure /leeroy can be written by leeroy
  28. RUN chown 1001 /leeroy
  29. # Blow away any random state
  30. RUN rm -f /leeroy/.rnd
  31. # Make a directory for the intel driver
  32. RUN mkdir -p /opt/intel && chown 1001 /opt/intel
  33. # Set the working directory to leeroy home directory
  34. WORKDIR /leeroy
  35. # Specify the user to execute all commands below
  36. USER leeroy
  37. # Set environment variables.
  38. ENV HOME /leeroy
  39. # Define default command.
  40. CMD ["bash"]