diff options
author | Harish Venkata Kajur <vk250x@att.com> | 2021-02-03 15:30:57 -0500 |
---|---|---|
committer | Harish Venkata Kajur <vk250x@att.com> | 2021-02-03 15:35:10 -0500 |
commit | 00f720639e4e7a7cc1ca5ef4bd651d33bb4b9ad8 (patch) | |
tree | eed6d6ecff8d57598fbe1d439c4d093ffc4d3fe8 /aai-common-docker/aai-common-images/src/main/docker | |
parent | f9746e5375883b0fe10032ae3f9b7d5e2a22cd63 (diff) |
Update to java 11 alpine image
Issue-ID: AAI-2700
Change-Id: If39c569af13b25fadff465653af614e63d74e740
Signed-off-by: Harish Venkata Kajur <vk250x@att.com>
Diffstat (limited to 'aai-common-docker/aai-common-images/src/main/docker')
-rw-r--r-- | aai-common-docker/aai-common-images/src/main/docker/Dockerfile.alpine | 24 |
1 files changed, 14 insertions, 10 deletions
diff --git a/aai-common-docker/aai-common-images/src/main/docker/Dockerfile.alpine b/aai-common-docker/aai-common-images/src/main/docker/Dockerfile.alpine index 915c511e..1cdd580f 100644 --- a/aai-common-docker/aai-common-images/src/main/docker/Dockerfile.alpine +++ b/aai-common-docker/aai-common-images/src/main/docker/Dockerfile.alpine @@ -1,7 +1,4 @@ -FROM openjdk:8-jre-alpine3.9 - -# Set the version of the gosu command and if needs to be, it can be modified at runtime -ENV GOSU_VERSION 1.10 +FROM adoptopenjdk/openjdk11:jre-11.0.9_11-alpine # For building the image in a proxy environment if necessary ARG HTTP_PROXY @@ -31,9 +28,16 @@ RUN \ && apk add --no-cache ${DEPS} \ # need fastjar for some projects to update app's jar on container restart && ln -snf /usr/bin/fastjar $JAVA_HOME/bin/jar \ - # Get the dpkg to properly download and install that version compatible to install GOSU on the image - && dpkgArch="$(dpkg --print-architecture | awk -F- '{ print $NF }')" \ - # Downloads the gosu command based on the dpkg version and gosu version supplied - && wget -O /usr/local/bin/gosu "https://github.com/tianon/gosu/releases/download/$GOSU_VERSION/gosu-$dpkgArch" \ - # Use GPG to install the gosu application locally - && chmod +x /usr/local/bin/gosu + && mkdir -p /opt/aaihome/aaiadmin && \ + groupadd aaiadmin -g 1000 && \ + useradd --shell=/bin/bash -u 1000 -g 1000 -o -c "" -m aaiadmin + +# Reset the proxy after done with it download necessary dependencies + +ENV HTTP_PROXY "" +ENV HTTPS_PROXY "" +ENV http_proxy "" +ENV https_proxy "" +ENV no_proxy "" + +USER aaiadmin |