5 RUN apt-get update; apt-get -y install g++ && apt-get -y install make && \
6 apt-get -y install libargtable2-dev && apt-get -y install gfortran
8 RUN wget --no-check-certificate https://www.python.org/ftp/python/2.7.13/Python-2.7.13.tgz && \
9 tar -xzf Python-2.7.13.tgz && cd Python-2.7.13 && ./configure && make && make install
11 ENV WAR http://www.compbio.dundee.ac.uk/jabaws22/archive/jabaws.war
12 RUN wget $WAR -O ./jabaws.war
13 RUN mkdir -p $CATALINA_HOME/webapps/jabaws
14 RUN unzip ./jabaws.war -d $CATALINA_HOME/webapps/jabaws
16 ENV EXEC http://www.compbio.dundee.ac.uk/jabaws22/archive/docker/Executable.properties
17 RUN wget $EXEC -O ./Executable.properties
18 RUN mv ./Executable.properties $CATALINA_HOME/webapps/jabaws/conf/
20 RUN mkdir -p $CATALINA_HOME/webapps/jabaws/jobsout
22 WORKDIR $CATALINA_HOME/webapps/jabaws/binaries/src/
24 # compile the binaries
25 #RUN chmod +x ./compilebin.sh && ./compilebin.sh
26 RUN chmod +x ./setexecflag.sh && ./setexecflag.sh
28 WORKDIR $CATALINA_HOME
31 CMD ["catalina.sh", "run"]