summaryrefslogtreecommitdiffstats
path: root/src/main/docker/Dockerfile
blob: 786ef0031259f4f0349f1a47c337c8a57c6e53d2 (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
FROM nexus3.onap.org:10001/onap/integration-java11:10.0.0

ENV HOSTALIASES /etc/host.aliases

ARG user=restconfcollector
ARG group=restconfcollector

USER root
WORKDIR /opt/app/restconfcollector

RUN apk --no-cache update && apk --no-cache upgrade && apk add --upgrade procps && apk add --no-cache vim && apk --no-cache add curl && \
    addgroup $group && adduser --system --disabled-password --no-create-home --ingroup $group $user && \
    chown -R $user:$group /opt/app/restconfcollector && \
    chmod -R u+rw /opt/app/restconfcollector

USER  $user

COPY --chown=$user:$group /. /opt/app/restconfcollector/

RUN chmod +x bin/docker_entry.sh
RUN chmod +x bin/restConfCollector.sh

EXPOSE 8080 8687

ENTRYPOINT ["bin/docker_entry.sh"]