From e3593e4992ffd33a51e7b928a59b27392c60eb03 Mon Sep 17 00:00:00 2001 From: Vincent Batts Date: Fri, 10 Mar 2017 15:41:17 -0500 Subject: [PATCH] Dockerfile: introduce environment variables Signed-off-by: Vincent Batts --- Dockerfile | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/Dockerfile b/Dockerfile index 6cfbafe..e26fed6 100644 --- a/Dockerfile +++ b/Dockerfile @@ -5,4 +5,7 @@ RUN dnf install -y golang git bzr && \ go get github.com/vbatts/imgsrv && \ rm -rf /usr/local/src /usr/local/pkg && \ dnf remove -y golang git bzr -ENTRYPOINT ["/usr/local/bin/imgsrv"] +ENV MONGO_DB filesrv +ENV MONGO_HOST 127.0.0.1 +ENV MONGO_PORT 27017 +ENTRYPOINT /usr/local/bin/imgsrv -server -mongo-host=$MONGO_HOST:$MONGO_PORT -mongo-db=$MONGO_DB -mongo-username=$MONGO_USER -mongo-password=$MONGO_PASSWORD