From acb4ab7ab6fe12f1e23ad1493f1a775c6536f713 Mon Sep 17 00:00:00 2001 From: Steve Durrheimer Date: Wed, 3 Jun 2015 00:16:22 +0200 Subject: [PATCH] Fix silences.json permission error with docker image --- Dockerfile | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/Dockerfile b/Dockerfile index 48c15f75..59c478d2 100644 --- a/Dockerfile +++ b/Dockerfile @@ -6,7 +6,12 @@ ENV PKGPATH $GOPATH/src/github.com/prometheus/alertmanager ENV GOROOT /usr/src/go ADD . $PKGPATH -RUN cd $PKGPATH && go get -d && make && rm -rf $PKGPATH/.deps +RUN cd $PKGPATH \ + && go get -d \ + && make \ + && rm -rf $PKGPATH/.deps \ + && mkdir /alertmanager \ + && chown nobody /alertmanager USER nobody WORKDIR /alertmanager