1 FROM adoptopenjdk/openjdk11:jre-11.0.9_11-alpine
3 # For building the image in a proxy environment if necessary
8 ENV HTTP_PROXY ${HTTP_PROXY}
9 ENV HTTPS_PROXY ${HTTPS_PROXY}
10 ENV http_proxy ${HTTP_PROXY}
11 ENV https_proxy ${HTTPS_PROXY}
12 ENV no_proxy 127.0.0.1,localhost,${no_proxy}
15 # Put all the dependencies into this variable to easily install everything
16 DEPS="ca-certificates \
28 && apk add --no-cache ${DEPS} \
29 # need fastjar for some projects to update app's jar on container restart
30 && ln -snf /usr/bin/fastjar $JAVA_HOME/bin/jar \
31 && mkdir -p /opt/aaihome/aaiadmin && \
32 groupadd aaiadmin -g 1000 && \
33 useradd --shell=/bin/bash -u 1000 -g 1000 -o -c "" -m aaiadmin
35 # Reset the proxy after done with it download necessary dependencies