Lvbo163 | 091eb47 | 2017-09-15 17:36:41 +0800 | [diff] [blame] | 1 | FROM ubuntu:16.04 |
| 2 | |
| 3 | MAINTAINER "Lv Bo" <lv.bo163@zte.com.cn> |
| 4 | |
| 5 | EXPOSE 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 |
| 9 | RUN apt-get update |
| 10 | RUN apt-get install -y openjdk-8-jdk |
| 11 | |
| 12 | #configure the JDK |
| 13 | RUN sed -i 's|#networkaddress.cache.ttl=-1|networkaddress.cache.ttl=10|' /usr/lib/jvm/java-8-openjdk-amd64/jre/lib/security/java.security |
| 14 | ENV JAVA_HOME /usr/lib/jvm/java-8-openjdk-amd64 |
| 15 | ENV PATH $PATH:/usr/lib/jvm/java-8-openjdk-amd64/jre/bin:/usr/lib/jvm/java-8-openjdk-amd64/bin |
| 16 | ENV CLASSPATH .:${JAVA_HOME}/lib:${JRE_HOME}/lib |
| 17 | ENV JRE_HOME ${JAVA_HOME}/jre |
| 18 | |
| 19 | #add workflow designer related resources to the docker image |
| 20 | RUN mkdir /home/sdc-workflow-designer |
| 21 | WORKDIR /home/sdc-workflow-designer |
| 22 | ADD sdc-workflow-designer-*-linux64.tar.gz /home/sdc-workflow-designer/ |
Lvbo163 | 110e565 | 2017-09-25 14:53:47 +0800 | [diff] [blame^] | 23 | RUN chmod 755 /home/sdc-workflow-designer/*.sh |
Lvbo163 | 091eb47 | 2017-09-15 17:36:41 +0800 | [diff] [blame] | 24 | |
| 25 | ENTRYPOINT /home/sdc-workflow-designer/startup.sh |
| 26 | |