docker: run alertmanager as nobody

fixes #39
This commit is contained in:
Michael Stapelberg 2015-03-22 20:14:20 +01:00
parent 2f0da53569
commit 2937c7e765
1 changed files with 1 additions and 0 deletions

View File

@ -8,6 +8,7 @@ ENV GOROOT /usr/src/go
ADD . $PKGPATH ADD . $PKGPATH
RUN cd $PKGPATH && go get -d && make RUN cd $PKGPATH && go get -d && make
USER nobody
WORKDIR /alertmanager WORKDIR /alertmanager
ENTRYPOINT [ "/go/src/github.com/prometheus/alertmanager/alertmanager" ] ENTRYPOINT [ "/go/src/github.com/prometheus/alertmanager/alertmanager" ]
EXPOSE 9093 EXPOSE 9093