allow data folder to be configured via env var. Adds to #137

This commit is contained in:
Nicholas St. Germain 2019-06-18 17:09:46 -05:00
parent 5ce0447c53
commit 4ee0551ca2
4 changed files with 17 additions and 14 deletions

View file

@ -4,6 +4,8 @@ LABEL maintainers="dirtycajunrice,samwiseg0"
ENV DEBUG="True"
ENV DATA_FOLDER="/config"
WORKDIR /app
COPY /requirements.txt /Varken.py /app/
@ -17,6 +19,6 @@ COPY /utilities /app/data/utilities
RUN apk add --no-cache tzdata && \
pip install --no-cache-dir -r /app/requirements.txt
CMD cp /app/data/varken.example.ini /config/varken.example.ini && python3 /app/Varken.py --data-folder /config
CMD cp /app/data/varken.example.ini /config/varken.example.ini && python3 /app/Varken.py
VOLUME /config