| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869 | # Start with 18.04FROM ubuntu:18.04# Add steps here to set up dependenciesRUN apt-get update && env DEBIAN_FRONTEND=noninteractive apt-get install -y \    apache2-utils \    autoconf \    bison \    build-essential \    curl \    flex \    gawk \    gettext \    git \    libapr1-dev \    libaprutil1-dev \    libelf-dev \    libexpat1 \    libexpat1-dev \    libnss-mdns \    libomp-dev \    libpcre2-dev \    libpcre3-dev \    libprotobuf-c-dev \    libxml2-dev \    linux-headers-4.15.0-20-generic \    net-tools \    protobuf-c-compiler \    python \    python3-apport \    python3-apt \    python3-breathe \    python3-lxml \    python3-numpy \    python3-pip \    python3-protobuf \    python3-pytest \    python3-scipy \    texinfo \    wget \    zlib1g \    zlib1g-devRUN pip3 install 'Sphinx>=1.8' sphinx_rtd_theme recommonmark# Add the user UID:1001, GID:1001, home at /leeroyRUN groupadd -r leeroy -g 1001 && useradd -u 1001 -r -g leeroy -m -d /leeroy -c "Leeroy Jenkins" leeroy && \    chmod 755 /leeroy# Make sure /leeroy can be written by leeroyRUN chown 1001 /leeroy# Blow away any random stateRUN rm -f /leeroy/.rnd# Make a directory for the intel driverRUN mkdir -p /opt/intel && chown 1001 /opt/intel# Set the working directory to leeroy home directoryWORKDIR /leeroy# Specify the user to execute all commands belowUSER leeroy# Set environment variables.ENV HOME /leeroy# Define default command.CMD ["bash"]
 |