blob: 483c219b75a8f85556d9d53dbb91ae2463c5d05c [file] [log] [blame]
mukesh.paliwal36e6d002021-02-05 12:44:04 +05301FROM adoptopenjdk/openjdk11:jre-11.0.8_10-alpine
2
mukesh.paliwal6abd3952021-02-22 15:02:10 +05303ARG JAR_FILE=*.jar
mukesh.paliwal36e6d002021-02-05 12:44:04 +05304ARG http_proxy
5ENV HTTP_PROXY=$http_proxy
6ENV http_proxy=$HTTP_PROXY
7ARG https_proxy
8ENV HTTPS_PROXY=$https_proxy
9ENV https_proxy=$HTTPS_PROXY
10USER root
11RUN mkdir -p /app/config
12RUN mkdir -p /app/certificates
13RUN mkdir -p /app/logs
14RUN mkdir -p /app/ca-certificates
15RUN apk update && apk add apache2-utils
mukesh.paliwal6abd3952021-02-22 15:02:10 +053016COPY target/${JAR_FILE} /app/app.jar
mukesh.paliwal36e6d002021-02-05 12:44:04 +053017
18COPY configs/logging/logback-spring.xml /app
19COPY scripts/start-app.sh /app
20COPY scripts/wait-for.sh /app
21COPY ca-certificates/onap-ca.crt /app/ca-certificates/onap-ca.crt
22#RUN chown -R so:so /app
23#USER so
24# Springboot configuration (required)
25VOLUME /app/config
26# Root certificates (optional)
27VOLUME /app/ca-certificates
28WORKDIR /app
29ENTRYPOINT ["/app/start-app.sh"]
30