mukesh.paliwal | 36e6d00 | 2021-02-05 12:44:04 +0530 | [diff] [blame] | 1 | FROM adoptopenjdk/openjdk11:jre-11.0.8_10-alpine |
| 2 | |
mukesh.paliwal | 6abd395 | 2021-02-22 15:02:10 +0530 | [diff] [blame] | 3 | ARG JAR_FILE=*.jar |
mukesh.paliwal | 36e6d00 | 2021-02-05 12:44:04 +0530 | [diff] [blame] | 4 | ARG http_proxy |
| 5 | ENV HTTP_PROXY=$http_proxy |
| 6 | ENV http_proxy=$HTTP_PROXY |
| 7 | ARG https_proxy |
| 8 | ENV HTTPS_PROXY=$https_proxy |
| 9 | ENV https_proxy=$HTTPS_PROXY |
| 10 | USER root |
| 11 | RUN mkdir -p /app/config |
| 12 | RUN mkdir -p /app/certificates |
| 13 | RUN mkdir -p /app/logs |
| 14 | RUN mkdir -p /app/ca-certificates |
| 15 | RUN apk update && apk add apache2-utils |
mukesh.paliwal | 6abd395 | 2021-02-22 15:02:10 +0530 | [diff] [blame] | 16 | COPY target/${JAR_FILE} /app/app.jar |
mukesh.paliwal | 36e6d00 | 2021-02-05 12:44:04 +0530 | [diff] [blame] | 17 | |
| 18 | COPY configs/logging/logback-spring.xml /app |
| 19 | COPY scripts/start-app.sh /app |
| 20 | COPY scripts/wait-for.sh /app |
| 21 | COPY 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) |
| 25 | VOLUME /app/config |
| 26 | # Root certificates (optional) |
| 27 | VOLUME /app/ca-certificates |
| 28 | WORKDIR /app |
| 29 | ENTRYPOINT ["/app/start-app.sh"] |
| 30 | |