mirror of
https://github.com/prometheus/alertmanager
synced 2025-01-19 12:40:49 +00:00
Merge pull request #72 from sdurrheimer/master
Fix silences.json permission error with docker image
This commit is contained in:
commit
5b78ab6c58
@ -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
Block a user