Travis-CI Dockerbuild test

This commit is contained in:
Nicholas St. Germain 2018-12-10 20:27:54 -06:00
parent 4c1c60c152
commit 30984a1e79
2 changed files with 28 additions and 0 deletions

16
Dockerfile Normal file
View file

@ -0,0 +1,16 @@
FROM lsiobase/alpine.python3
LABEL maintainer="dirtycajunrice"
ENV branch="master"
RUN \
git clone --single-branch -b $branch https://github.com/Boerderij/Varken.git /app && \
python3 -m pip install -r /app/requirements.txt && \
chown -R abc:abc \
/config \
/app
CMD cp /app/data/varken.example.ini /config/varken.example.ini && python3 /app/Varken.py --data-folder /config
VOLUME /config