aboutsummaryrefslogtreecommitdiffstats
path: root/aai-common-docker/aai-common-images/src/main/docker/Dockerfile.alpine
blob: 805d2f69e514d8c875fd17f324e4e7e83591924a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
FROM eclipse-temurin:8-jre-alpine

# For building the image in a proxy environment if necessary
ARG HTTP_PROXY
ARG HTTPS_PROXY
ARG no_proxy

ENV HTTP_PROXY   ${HTTP_PROXY}
ENV HTTPS_PROXY  ${HTTPS_PROXY}
ENV http_proxy   ${HTTP_PROXY}
ENV https_proxy  ${HTTPS_PROXY}
ENV no_proxy  127.0.0.1,localhost,${no_proxy}

RUN \
    # Put all the dependencies into this variable to easily install everything
    DEPS="ca-certificates \
            curl \
            dpkg \
            fastjar \
            jq \
            loksh \
            bash \
            netcat-openbsd \
            openssl \
            shadow \
            util-linux \
            wget" \
        && 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 \
        && 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