update docker-compose.yml.
[SMMID.git] / Dockerfile
blob4725815f1219110001db9918119db2668f5a2abf
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
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
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
27 RUN apt-get update && apt-get install nodejs -y
29 RUN git clone https://github.com/solgenomics/SMMID /home/production/SMMID
31 COPY build.sh /
33 RUN bash /build.sh
35 COPY entrypoint.sh /
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
48