diff --git a/.dockerignore b/.dockerignore new file mode 100644 index 00000000..39a06683 --- /dev/null +++ b/.dockerignore @@ -0,0 +1 @@ +.deps diff --git a/Dockerfile b/Dockerfile index 5ae07007..48c15f75 100644 --- a/Dockerfile +++ b/Dockerfile @@ -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