Skip to content

Commit

Permalink
Install the requirements twice
Browse files Browse the repository at this point in the history
To try to work around Singularity bugs
  • Loading branch information
Sam Minot committed Feb 6, 2018
1 parent cc63331 commit f0fe701
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,7 @@ RUN apt update && \
apt-get install -y build-essential wget unzip python2.7 python-dev git python-pip \
bats awscli curl zlib1g-dev libbz2-dev liblzma-dev libcurl4-openssl-dev libssl1.0.0 \
libssl-dev libtbb-dev g++ && \
pip install -r /usr/midas/requirements.txt && \
rm /usr/midas/requirements.txt
pip install -r /usr/midas/requirements.txt


# Use /share as the working directory
Expand Down Expand Up @@ -68,6 +67,10 @@ RUN cd /usr/midas && \
ln -s /usr/midas/run.py /usr/bin/


# Install prereq's including Numpy a second time
RUN pip install -r /usr/midas/requirements.txt


# Run tests and then remove the folder
ADD tests /usr/midas/tests
RUN bats /usr/midas/tests/ && rm -r /usr/midas/tests/

0 comments on commit f0fe701

Please sign in to comment.