refactor docker deployment

This commit is contained in:
Nicholas St. Germain 2019-01-25 12:34:29 -06:00
parent 98794b3e7b
commit 3896f5242b
8 changed files with 29 additions and 85 deletions

View file

@ -4,12 +4,16 @@ LABEL maintainers="dirtycajunrice,samwiseg0"
ENV DEBUG="False"
COPY / /app
WORKDIR /app
COPY /requirements.txt /Varken.py /app/
COPY /varken /app/varken
COPY /data /app/data
RUN python3 -m pip install -r /app/requirements.txt
WORKDIR /app
CMD cp /app/data/varken.example.ini /config/varken.example.ini && python3 /app/Varken.py --data-folder /config
VOLUME /config