From 975b1c42ef4600e5b44530dc4914cd101cd82537 Mon Sep 17 00:00:00 2001 From: Cameron Davison Date: Fri, 10 Apr 2015 14:47:36 -0500 Subject: [PATCH] we do not need the deps around after the executable is created --- .dockerignore | 1 + Dockerfile | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) create mode 100644 .dockerignore 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