2 ### Dockerfile for SMID-DB.org
6 LABEL maintainer="lam87@cornell.edu"
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
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
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