blob: bcb407434574738df88d74b6343b8d60fa65f874 [file] [log] [blame]
Stone, Avi (as206k)3e4c1872018-05-23 11:21:11 +03001#
2# Oracle Java 8 Dockerfile
3#
4#
5# Image built by Thomas Nelson See Docker Github
6# Pull base image.
7FROM 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
12ENV INSDIR /opt/app/validator
13ENV LOGS ${INSDIR}/logs
14
15RUN mkdir -p $INSDIR
16
17RUN mkdir ${INSDIR}/ssl && \
18 mkdir $LOGS
19COPY service/target/ASC-Validator-*.jar ${INSDIR}/ASC-Validator.jar
20COPY service/target/classes/application.properties ${INSDIR}/
21COPY configure-and-run.sh /usr/local/bin/
22# Define working directory.
23WORKDIR $INSDIR
24VOLUME $LOGS
25
26# Define default command.
27CMD ["/usr/local/bin/configure-and-run.sh"]
28