diff options
author | Ash McKenzie <amckenzie@gitlab.com> | 2019-08-19 13:37:12 +1000 |
---|---|---|
committer | Ash McKenzie <amckenzie@gitlab.com> | 2019-08-22 16:35:21 +1000 |
commit | aaf4d1d8fa6c5d350a417b300c2972c38b08e12b (patch) | |
tree | b1017173108b5964b3a6915441344ee0fa1444ad | |
parent | 46a33367379effcc10e01f0d5ae9ab7c2b0bd635 (diff) | |
download | gitlab-ce-ashmckenzie/install-latest-git-and-git-lfs-for-qa-docker-image.tar.gz |
Add cleanup section at end to reduce image sizeashmckenzie/install-latest-git-and-git-lfs-for-qa-docker-image
-rw-r--r-- | qa/Dockerfile | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/qa/Dockerfile b/qa/Dockerfile index 047bea32b67..9e25934690c 100644 --- a/qa/Dockerfile +++ b/qa/Dockerfile @@ -65,7 +65,12 @@ RUN unzip chromedriver_linux64.zip -d /usr/local/bin RUN export CLOUD_SDK_REPO="cloud-sdk-$(lsb_release -c -s)" && \ echo "deb http://packages.cloud.google.com/apt $CLOUD_SDK_REPO main" | tee -a /etc/apt/sources.list.d/google-cloud-sdk.list && \ curl https://packages.cloud.google.com/apt/doc/apt-key.gpg | apt-key add - && \ - apt-get update -y && apt-get install google-cloud-sdk kubectl -y + apt-get update -y && apt-get -y install google-cloud-sdk kubectl + +## +# Cleanup +# +RUN apt-get clean -y && apt-get auto-remove -y && rm -rf /var/lib/apt/lists/* WORKDIR /home/gitlab/qa COPY ./qa/Gemfile* /home/gitlab/qa/ |