diff options
author | Chance Zibolski <chance.zibolski@gmail.com> | 2014-07-21 20:20:35 -0700 |
---|---|---|
committer | Chance Zibolski <chance.zibolski@gmail.com> | 2014-07-21 20:20:35 -0700 |
commit | 78103f1df3d89cbf5b3a75188e2ea097d2a8ca9f (patch) | |
tree | d399e3791839e8fdadbb047aa9e4061884404d54 | |
parent | aed4271c8dc60f34a59c548bbc1b8859b0105be0 (diff) |
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.
-rw-r--r-- | dockerfiles/images/gogits/Dockerfile | 3 |
1 files changed, 0 insertions, 3 deletions
diff --git a/dockerfiles/images/gogits/Dockerfile b/dockerfiles/images/gogits/Dockerfile index 1f67d41e..80801a09 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 / |