11# ==============================================================================================
2- FROM python:3.6 as base
2+ FROM python:3.8 as base
33
44LABEL author="Rodrigo V. Honorato <r.vargashonorato@uu.nl>"
55
@@ -10,18 +10,16 @@ RUN apt-get update && \
1010 && \
1111 apt-get clean && rm -rf /var/lib/apt/lists/*
1212
13- WORKDIR /opt/software
14-
15- # Install Whiscy
16- RUN git clone https://github.com/haddocking/whiscy.git && \
17- cd whiscy && \
18- git checkout tags/v1.1.1 && \
19- cd /opt/software/whiscy/bin/protdist && \
20- sh compile.sh
13+ # Copy Whiscy
14+ WORKDIR /opt/software/whiscy
15+ COPY . .
2116
17+ # install BioPython
2218RUN pip install biopython==1.79
2319
24- WORKDIR /opt/software/whiscy/bin
20+ # Build protdist
21+ WORKDIR /opt/software/whiscy/bin/protdist
22+ RUN sh compile.sh
2523
2624# Build Muscle
2725WORKDIR /opt/software/whiscy/muscle3.8.1551
@@ -30,7 +28,7 @@ RUN curl https://drive5.com/muscle/muscle_src_3.8.1551.tar.gz | tar xzv && \
3028 mv muscle /opt/software/whiscy/bin/muscle3.8.1551 && \
3129 sed -i "s/\/ Users\/ bjimenez\/ bin\/ muscle\/ muscle3.8.31_i86darwin64/\/ opt\/ software\/ whiscy\/ bin\/ muscle3.8.1551/g" /opt/software/whiscy/etc/local.json
3230
33- # Install hsspconv
31+ # Build hsspconv
3432RUN wget https://github.com/cmbi/hssp/archive/3.1.5.tar.gz && \
3533 tar -zxvf 3.1.5.tar.gz && \
3634 cd hssp-3.1.5 && \
@@ -41,7 +39,7 @@ RUN wget https://github.com/cmbi/hssp/archive/3.1.5.tar.gz && \
4139 sed -i "s/\/ Users\/ bjimenez\/ bin\/ hssp\/ hsspconv/\/ opt\/ software\/ whiscy\/ bin\/ hsspconv/g" /opt/software/whiscy/etc/local.json
4240
4341
44- # Install freesasa
42+ # Build freesasa
4543RUN wget https://github.com/mittinatten/freesasa/releases/download/2.0.3/freesasa-2.0.3.tar.gz && \
4644 tar -zxvf freesasa-2.0.3.tar.gz && \
4745 cd freesasa-2.0.3 && \
@@ -50,9 +48,16 @@ RUN wget https://github.com/mittinatten/freesasa/releases/download/2.0.3/freesa
5048
5149# WHISCY exports
5250ENV WHISCY_PATH=/opt/software/whiscy
53- ENV PYTHONPATH="{$ PYTHONPATH}:${WHISCY_PATH}"
51+ ENV PYTHONPATH="${ PYTHONPATH}:${WHISCY_PATH}"
5452ENV WHISCY_BIN="${WHISCY_PATH}/whiscy.py"
5553ENV PATH="${WHISCY_PATH}:${WHISCY_PATH}/bin/freesasa/bin:${PATH}"
54+
55+ WORKDIR /data
56+
57+ # ##############################################################################################
58+ # No entrypoint here because Whiscy runs multiple commands
59+ # ##############################################################################################
60+
5661# ==============================================================================================
5762
5863FROM base AS test
@@ -61,6 +66,5 @@ RUN pip install pytest coverage pytest pytest-cov hypothesis
6166
6267WORKDIR /opt/software/whiscy
6368
64- COPY test/ tests/
6569
6670# ==============================================================================================
0 commit comments