Update Dockerfile to use VOLUMEs
parent
6c2c90c8b8
commit
5ce005b24b
|
@ -3,7 +3,6 @@ MAINTAINER Chris Goller <chris@influxdb.com>
|
|||
|
||||
RUN apk add --update ca-certificates && \
|
||||
rm /var/cache/apk/*
|
||||
RUN mkdir -p /var/lib/chronograf
|
||||
|
||||
ADD chronograf /usr/bin/chronograf
|
||||
ADD canned/*.json /usr/share/chronograf/canned/
|
||||
|
@ -11,5 +10,6 @@ ADD LICENSE /usr/share/chronograf/LICENSE
|
|||
ADD agpl-3.0.md /usr/share/chronograf/agpl-3.0.md
|
||||
|
||||
EXPOSE 8888
|
||||
VOLUME ["/usr/share/chronograf", "/var/lib/chronograf"]
|
||||
|
||||
CMD ["/usr/bin/chronograf", "-b", "/var/lib/chronograf/chronograf-v1.db", "-c", "/usr/share/chronograf/canned"]
|
||||
|
|
Loading…
Reference in New Issue