ubuntu-18.04.dockerfile 1012 B

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