blob: eaf0da223b29f30ca3f80622460271a4d9f4facd [file] [log] [blame]
Lvbo163091eb472017-09-15 17:36:41 +08001FROM ubuntu:16.04
2
3MAINTAINER "Lv Bo" <lv.bo163@zte.com.cn>
4
5EXPOSE 8080
6
7#install openjdk-1.8
8#RUN sed -i 's#http://archive.ubuntu.com#http://mirrors.163.com#g' /etc/apt/sources.list
9RUN apt-get update
10RUN apt-get install -y openjdk-8-jdk
11
12#configure the JDK
13RUN sed -i 's|#networkaddress.cache.ttl=-1|networkaddress.cache.ttl=10|' /usr/lib/jvm/java-8-openjdk-amd64/jre/lib/security/java.security
14ENV JAVA_HOME /usr/lib/jvm/java-8-openjdk-amd64
15ENV PATH $PATH:/usr/lib/jvm/java-8-openjdk-amd64/jre/bin:/usr/lib/jvm/java-8-openjdk-amd64/bin
16ENV CLASSPATH .:${JAVA_HOME}/lib:${JRE_HOME}/lib
17ENV JRE_HOME ${JAVA_HOME}/jre
18
19#add workflow designer related resources to the docker image
20RUN mkdir /home/sdc-workflow-designer
21WORKDIR /home/sdc-workflow-designer
22ADD sdc-workflow-designer-*-linux64.tar.gz /home/sdc-workflow-designer/
Lvbo163110e5652017-09-25 14:53:47 +080023RUN chmod 755 /home/sdc-workflow-designer/*.sh
Lvbo163091eb472017-09-15 17:36:41 +080024
25ENTRYPOINT /home/sdc-workflow-designer/startup.sh
26