From 4aa240a33637ffaba2eed26b85d28da2c6a3e074 Mon Sep 17 00:00:00 2001 From: Thomas Duval Date: Thu, 22 Mar 2018 17:32:02 +0100 Subject: Allow to force the installation of dev python library in dist directory Change-Id: I4629810db3c4b269f4b47b157bd1aa323d507d18 --- moon_orchestrator/Dockerfile | 2 ++ 1 file changed, 2 insertions(+) (limited to 'moon_orchestrator') diff --git a/moon_orchestrator/Dockerfile b/moon_orchestrator/Dockerfile index e9f83094..4d75d6d7 100644 --- a/moon_orchestrator/Dockerfile +++ b/moon_orchestrator/Dockerfile @@ -3,6 +3,8 @@ FROM python:3 ADD . /root WORKDIR /root/ RUN pip3 install -r requirements.txt +RUN if [ -d /root/dist ]; then for FILE in $(ls /root/dist/*.tar.gz); do pip install $FILE --upgrade; done; fi +RUN if [ -d /root/dist ]; then for FILE in $(ls /root/dist/*.whl); do pip install $FILE --upgrade; done; fi RUN pip3 install . CMD ["python3", "-m", "moon_orchestrator"] \ No newline at end of file -- cgit 1.2.3-korg