we do not need the deps around after the executable is created

This commit is contained in:
Cameron Davison 2015-04-10 14:47:36 -05:00
parent 438e8b98b8
commit 975b1c42ef
2 changed files with 2 additions and 1 deletions

1
.dockerignore Normal file
View File

@ -0,0 +1 @@
.deps

View File

@ -6,7 +6,7 @@ ENV PKGPATH $GOPATH/src/github.com/prometheus/alertmanager
ENV GOROOT /usr/src/go
ADD . $PKGPATH
RUN cd $PKGPATH && go get -d && make
RUN cd $PKGPATH && go get -d && make && rm -rf $PKGPATH/.deps
USER nobody
WORKDIR /alertmanager