Update Dockerfile to use VOLUMEs

pull/10616/head
Chris Goller 2016-11-15 09:07:12 -06:00
parent 6c2c90c8b8
commit 5ce005b24b
1 changed files with 1 additions and 1 deletions

View File

@ -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"]