Fix silences.json permission error with docker image
This commit is contained in:
parent
30dc9f7325
commit
acb4ab7ab6
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue