Stone, Avi (as206k) | 3e4c187 | 2018-05-23 11:21:11 +0300 | [diff] [blame] | 1 | # |
| 2 | # Oracle Java 8 Dockerfile |
| 3 | # |
| 4 | # |
| 5 | # Image built by Thomas Nelson See Docker Github |
| 6 | # Pull base image. |
| 7 | FROM jdk-8u101_ubuntu:16.04 |
| 8 | |
| 9 | # Define commonly used ENV variables |
| 10 | #ENV JAVA_HOME /usr/lib/jvm/java-8-oracle |
| 11 | #ENV PATH $PATH:$JAVA_HOME/bin:/opt/apache-tomcat-8.0.37/bin |
| 12 | ENV INSDIR /opt/app/validator |
| 13 | ENV LOGS ${INSDIR}/logs |
| 14 | |
| 15 | RUN mkdir -p $INSDIR |
| 16 | |
| 17 | RUN mkdir ${INSDIR}/ssl && \ |
| 18 | mkdir $LOGS |
| 19 | COPY service/target/ASC-Validator-*.jar ${INSDIR}/ASC-Validator.jar |
| 20 | COPY service/target/classes/application.properties ${INSDIR}/ |
| 21 | COPY configure-and-run.sh /usr/local/bin/ |
| 22 | # Define working directory. |
| 23 | WORKDIR $INSDIR |
| 24 | VOLUME $LOGS |
| 25 | |
| 26 | # Define default command. |
| 27 | CMD ["/usr/local/bin/configure-and-run.sh"] |
| 28 | |