forked from cBioPortal/cbioportal
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile
32 lines (32 loc) · 1.42 KB
/
Dockerfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
FROM tomcat:8-jre8
MAINTAINER Alexandros Sigaras <[email protected]>, Fedde Schaeffer <[email protected]>
LABEL Description="cBioPortal for Cancer Genomics"
ENV APP_NAME="cbioportal" \
PORTAL_HOME="/cbioportal"
#======== Install Prerequisites ===============#
RUN apt-get update && apt-get install -y --no-install-recommends \
git \
libmysql-java \
patch \
python \
python-jinja2 \
python-mysqldb \
python-requests \
# install new versions of these packages backported to Debian stable;
# Debian does not add new features or break backwards compatibility within
# a stable release, but for these dependencies we need versions that do.
&& apt-get install -y --no-install-recommends -t jessie-backports \
maven \
openjdk-8-jdk \
&& ln -s /usr/share/java/mysql-connector-java.jar "$CATALINA_HOME"/lib/ \
&& rm -rf $CATALINA_HOME/webapps/examples \
&& rm -rf /var/lib/apt/lists/*
#======== Configure cBioPortal ===========================#
COPY . $PORTAL_HOME
WORKDIR $PORTAL_HOME
EXPOSE 8080
#======== Build cBioPortal on Startup ===============#
CMD mvn -DskipTests clean install \
&& cp $PORTAL_HOME/portal/target/cbioportal*.war $CATALINA_HOME/webapps/cbioportal.war \
&& find $PWD/core/src/main/scripts/ -type f -executable \! -name '*.pl' -print0 | xargs -0 -- ln -st /usr/local/bin \
&& sh $CATALINA_HOME/bin/catalina.sh run