Docker: Fix gunicorn not using ihm system package

Fixes #319
This commit is contained in:
0livd 2018-01-30 23:11:52 +01:00
parent 434ee8b852
commit 81ad57fe5b

View file

@ -4,12 +4,11 @@ RUN mkdir /ihatemoney &&\
mkdir -p /etc/ihatemoney &&\
pip install --no-cache-dir gunicorn pymysql
WORKDIR /ihatemoney
COPY . .
COPY . /ihatemoney
ARG INSTALL_FROM_PYPI="False"
RUN if [ "$INSTALL_FROM_PYPI" = True ]; then\
pip install --no-cache-dir ihatemoney ; else\
pip install --no-cache-dir -e . ; \
pip install --no-cache-dir -e /ihatemoney ; \
fi
ENV DEBUG="False" \