2 ### Dockerfile for SMID-DB.org
6 LABEL maintainer="lam87@cornell.edu"
10 RUN mkdir -p /home/production/local-lib
12 # install prerequisites (libexpat1-dev is needed for XML libraries)
14 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 libpq-dev
16 RUN curl -sSL https://deb.nodesource.com/gpgkey/nodesource.gpg.key | apt-key add -
18 # 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
27 RUN apt-get update && apt-get install nodejs -y
29 RUN git clone https://github.com/solgenomics/SMMID /home/production/SMMID
36 COPY smmid_local.conf.docker /home/production/SMMID/smmid_local.conf
38 WORKDIR /home/production/SMMID
40 RUN git checkout relational_smid
42 ENV PERL5LIB=/home/production/SMMID/lib:/home/production/local-lib/lib/perl5
43 ENV CATALYST_HOME=/home/production/SMMID
45 ENTRYPOINT bash /entrypoint.sh