github.com/terraform-modules-krish/terratest@v0.29.0/test-docker-images/gruntwork-ubuntu-test/Dockerfile (about)

     1  FROM ubuntu:18.04
     2  
     3  # Reduce Docker image size per https://blog.replicated.com/refactoring-a-dockerfile-for-image-size/
     4  # - dnsutils: Install handy DNS checking tools like dig
     5  # - libcrypt-hcesha-perl: Install shasum
     6  # - software-properties-common: Install add-apt-repository
     7  RUN DEBIAN_FRONTEND=noninteractive \
     8      apt-get update && \
     9      apt-get upgrade -y && \
    10      apt-get install --no-install-recommends -y \
    11          gpg-agent \
    12          apt-transport-https \
    13          ca-certificates \
    14          curl \
    15          dnsutils \
    16          jq \
    17          libcrypt-hcesha-perl \
    18          python \
    19          python-pip \
    20          rsyslog \
    21          software-properties-common \
    22          sudo \
    23          vim \
    24          wget && \
    25          rm -rf /var/lib/apt/lists/*
    26  
    27  # Install the AWS CLI per https://docs.aws.amazon.com/cli/latest/userguide/installing.html. The last line upgrades pip
    28  # to the latest version. Note that we need to remove python-pip before we can use the updated pip, as pip does not
    29  # automatically remove the ubuntu managed pip. We also need to refresh the cached pip path in the current bash session so
    30  # that it picks up the new pip.
    31  RUN pip install --upgrade setuptools && \
    32      pip install --upgrade pip && \
    33      apt-get remove -y python-pip python-pip-whl && \
    34      hash pip && \
    35      pip install awscli --upgrade
    36  
    37  # Install the latest version of Docker, Consumer Edition
    38  RUN curl -fsSL https://download.docker.com/linux/ubuntu/gpg | apt-key add - && \
    39      add-apt-repository \
    40         "deb [arch=amd64] https://download.docker.com/linux/ubuntu \
    41         $(lsb_release -cs) \
    42         stable" && \
    43      apt-get update && \
    44      apt-get -y install docker-ce && \
    45      rm -rf /var/lib/apt/lists/*