From b86fbdd76d9c05d7f3c5760a9eddb231dcbb4d50 Mon Sep 17 00:00:00 2001 From: Riku Lindblad Date: Wed, 2 Mar 2016 08:37:27 -0500 Subject: [PATCH] Use a volume to deliver configs to the image --- Dockerfile | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/Dockerfile b/Dockerfile index 5da928e..9677db0 100644 --- a/Dockerfile +++ b/Dockerfile @@ -19,6 +19,8 @@ RUN git clone https://github.com/lepinkainen/pyfibot.git WORKDIR pyfibot RUN pip install --upgrade -r requirements.txt -COPY config.yml /tmp/config.yml +RUN mkdir /config -ENTRYPOINT ["pyfibot/pyfibot.py", "/tmp/config.yml"] +VOLUME /config + +ENTRYPOINT ["pyfibot/pyfibot.py", "/config/config.yml"]