Use env variables instead of flags in Dockerfile

This allows you to override those attributes without overriding the
entire command.
This commit is contained in:
Cody Soyland 2020-03-11 16:15:24 -05:00
parent 93a804f7ab
commit c6a293f818

View file

@ -21,5 +21,8 @@ COPY NOTICE /NOTICE
EXPOSE 10101
VOLUME /data
ENV PILOSA_DATA_DIR /data
ENV PILOSA_BIND http://0.0.0.0:10101
ENTRYPOINT ["/pilosa"]
CMD ["server", "--data-dir", "/data", "--bind", "http://0.0.0.0:10101"]
CMD ["server"]