Merge pull request #72 from sdurrheimer/master

Fix silences.json permission error with docker image
This commit is contained in:
Johannes 'fish' Ziemke 2015-06-03 12:33:33 +02:00
commit 5b78ab6c58

View File

@ -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