ubuntu-18.04.dockerfile 1.0 KB

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