blob: bcb407434574738df88d74b6343b8d60fa65f874 (
plain)
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
|
#
# Oracle Java 8 Dockerfile
#
#
# Image built by Thomas Nelson See Docker Github
# Pull base image.
FROM jdk-8u101_ubuntu:16.04
# Define commonly used ENV variables
#ENV JAVA_HOME /usr/lib/jvm/java-8-oracle
#ENV PATH $PATH:$JAVA_HOME/bin:/opt/apache-tomcat-8.0.37/bin
ENV INSDIR /opt/app/validator
ENV LOGS ${INSDIR}/logs
RUN mkdir -p $INSDIR
RUN mkdir ${INSDIR}/ssl && \
mkdir $LOGS
COPY service/target/ASC-Validator-*.jar ${INSDIR}/ASC-Validator.jar
COPY service/target/classes/application.properties ${INSDIR}/
COPY configure-and-run.sh /usr/local/bin/
# Define working directory.
WORKDIR $INSDIR
VOLUME $LOGS
# Define default command.
CMD ["/usr/local/bin/configure-and-run.sh"]
|