ubuntu-18.04.dockerfile 991 B

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