Fix silences.json permission error with docker image

This commit is contained in:
Steve Durrheimer 2015-06-03 00:16:22 +02:00
parent 30dc9f7325
commit acb4ab7ab6
1 changed files with 6 additions and 1 deletions

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