]> source.dussan.org Git - gitea.git/commitdiff
Remove apt-get cleanup from Dockerfile
authorChance Zibolski <chance.zibolski@gmail.com>
Tue, 22 Jul 2014 03:20:35 +0000 (20:20 -0700)
committerChance Zibolski <chance.zibolski@gmail.com>
Tue, 22 Jul 2014 03:20:35 +0000 (20:20 -0700)
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

index 1f67d41ed9f06b0d8705aaeea050f52470a5a28d..80801a09c55ab626f5cbf39ccee37f0788ac2a59 100644 (file)
@@ -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 /