2018-12-10 18:27:54 -08:00
|
|
|
FROM lsiobase/alpine.python3
|
|
|
|
|
|
|
|
LABEL maintainer="dirtycajunrice"
|
|
|
|
|
2018-12-10 21:16:30 -08:00
|
|
|
ARG branch="master"
|
|
|
|
|
|
|
|
ENV branch=$branch
|
2018-12-10 18:27:54 -08:00
|
|
|
|
2018-12-10 22:05:37 -08:00
|
|
|
#COPY / /app/Varken
|
|
|
|
|
2018-12-10 18:27:54 -08:00
|
|
|
RUN \
|
2018-12-10 22:05:37 -08:00
|
|
|
echo $PWD && ls && \
|
2018-12-10 18:27:54 -08:00
|
|
|
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
|