From 89dd1a93185d586102911a3132227178d31748c4 Mon Sep 17 00:00:00 2001 From: Philipp Le Date: Sun, 20 Sep 2020 00:42:22 +0200 Subject: Running pip install during Docker build --- Dockerfile | 2 ++ conf/entrypoint.sh | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/Dockerfile b/Dockerfile index 03255a5..94036ee 100644 --- a/Dockerfile +++ b/Dockerfile @@ -26,6 +26,8 @@ RUN apk update && apk add git gcc libc-dev libffi-dev openssl-dev wget postgresq COPY ./conf/entrypoint.sh /entrypoint.sh COPY ./ /ihatemoney/ +RUN pip install --no-cache-dir -e /ihatemoney + VOLUME /database EXPOSE 8000 ENTRYPOINT ["/entrypoint.sh"] diff --git a/conf/entrypoint.sh b/conf/entrypoint.sh index 8fc10f5..1e0483e 100755 --- a/conf/entrypoint.sh +++ b/conf/entrypoint.sh @@ -39,7 +39,7 @@ if [ "$NIGHTLY" == "True" -o "$NIGHTLY" == "true" ]; then else # Get the latest release from PyPI. #pip install --no-cache-dir --upgrade ihatemoney - pip install --no-cache-dir -e /ihatemoney + echo "Starting normally" fi # Start gunicorn without forking -- cgit v1.1