From c6a293f818019865b4a2ee9d648a6981e25de987 Mon Sep 17 00:00:00 2001 From: Cody Soyland Date: Wed, 11 Mar 2020 16:15:24 -0500 Subject: [PATCH] Use env variables instead of flags in Dockerfile This allows you to override those attributes without overriding the entire command. --- Dockerfile | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/Dockerfile b/Dockerfile index 01f3a0341..4bc089f12 100644 --- a/Dockerfile +++ b/Dockerfile @@ -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"]