run as nobody (#1586)
Signed-off-by: Jonathon <jonathon@insidersbyte.com>
This commit is contained in:
parent
a19404238b
commit
f297445b88
|
@ -5,6 +5,10 @@ COPY amtool /bin/amtool
|
||||||
COPY alertmanager /bin/alertmanager
|
COPY alertmanager /bin/alertmanager
|
||||||
COPY examples/ha/alertmanager.yml /etc/alertmanager/alertmanager.yml
|
COPY examples/ha/alertmanager.yml /etc/alertmanager/alertmanager.yml
|
||||||
|
|
||||||
|
RUN mkdir -p /alertmanager && \
|
||||||
|
chown -R nobody:nogroup etc/alertmanager /alertmanager
|
||||||
|
|
||||||
|
USER nobody
|
||||||
EXPOSE 9093
|
EXPOSE 9093
|
||||||
VOLUME [ "/alertmanager" ]
|
VOLUME [ "/alertmanager" ]
|
||||||
WORKDIR /alertmanager
|
WORKDIR /alertmanager
|
||||||
|
|
Loading…
Reference in New Issue