blob: c36fb21d269010943964dd594e46f1594ee63116 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
|
FROM docker.io/openjdk:11-jre-slim
ARG VERSION=${version}
ADD target/libs /app/libs
ADD ./templates /app/templates
ADD ./src/main/resources/application.properties /app/application.properties
ADD target/pnfsimulator-${VERSION}.jar /app/pnf-simulator.jar
CMD apk update
CMD apk add ca-certificates
ADD certificates /usr/local/share/ca-certificates/
RUN update-ca-certificates
CMD if [ -f /app/store/p12.pass ]; then export CLIENT_CERT_PASS=$(cat /app/store/p12.pass); fi \
&& if [ -f /app/store/trust.pass ]; then export TRUST_CERT_PASS=$(cat /app/store/trust.pass); fi \
&& java -Dspring.config.location=file:/app/application.properties -cp /app/libs/*:/app/pnf-simulator.jar org.onap.pnfsimulator.Main \
/
|