Merge pull request #41 from stapelberg/patch-1

docker: run alertmanager as nobody
This commit is contained in:
Julius Volz 2015-03-23 13:15:04 +01:00
commit e3427a89cf
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