From 78103f1df3d89cbf5b3a75188e2ea097d2a8ca9f Mon Sep 17 00:00:00 2001 From: Chance Zibolski Date: Mon, 21 Jul 2014 20:20:35 -0700 Subject: [PATCH] Remove apt-get cleanup from Dockerfile Purging/cleaning packages using apt doesn't actually reduce image size, and only creates additional layers, which doesn't add any benefit to the overall image. --- dockerfiles/images/gogits/Dockerfile | 3 --- 1 file changed, 3 deletions(-) diff --git a/dockerfiles/images/gogits/Dockerfile b/dockerfiles/images/gogits/Dockerfile index 1f67d41ed9f0..80801a09c55a 100644 --- a/dockerfiles/images/gogits/Dockerfile +++ b/dockerfiles/images/gogits/Dockerfile @@ -19,9 +19,6 @@ RUN cd /usr/local/go/src && ./make.bash --no-clean 2>&1 RUN go get -u -d github.com/gogits/gogs RUN cd $GOPATH/src/github.com/gogits/gogs && git checkout dev && git pull origin dev && go install && go build -tags redis -# Clean all the unused packages -RUN apt-get autoremove -y -RUN apt-get clean all # Add the deploy script to the docker image and assign execution permission to it. ADD ./deploy.sh /