Merge branch 'relational_smid' into relational_smid_ryan
[SMMID.git] / Dockerfile
blobf00fd05f1dc545f2b03dd8d33c88ad34d878757a
2 ### Dockerfile for SMID-DB.org
4 FROM debian:buster
6 LABEL maintainer="lam87@cornell.edu"
8 EXPOSE 8088
10 RUN mkdir -p  /home/production/local-lib
13 # install prerequisites (libexpat1-dev is needed for XML libraries)
15 RUN apt-get update && apt-get -y install apt-utils imagemagick screen nmap git lynx postgresql postgresql-server-dev-11 cpanminus build-essential perl-doc curl libexpat1-dev
17 RUN curl -sSL https://deb.nodesource.com/gpgkey/nodesource.gpg.key | apt-key add -
19 # Add the desired NodeSource repository
20 ENV VERSION=node_10.x
22 RUN echo "deb https://deb.nodesource.com/node_10.x  buster main" | tee /etc/apt/sources.list.d/nodesource.list
23 RUN echo "deb-src https://deb.nodesource.com/node_10.x buster main" | tee -a /etc/apt/sources.list.d/nodesource.list
25 # Update package lists and install Node.js
26 RUN apt-get update && apt-get install nodejs -y
28 RUN git clone https://github.com/solgenomics/SMMID /home/production/SMMID
30 WORKDIR /home/production/SMMID
32 COPY build.sh /
34 RUN bash /build.sh
36 COPY entrypoint.sh /
37 COPY smmid_local.conf.docker /home/production/SMMID/smmid_local.conf
39 RUN git checkout relational_smid
41 ENV PERL5LIB=/home/production/SMMID/lib:/home/production/local-lib/lib/perl5
42 ENV CATALYST_HOME=/home/production/SMMID
44 ENTRYPOINT bash /entrypoint.sh
47