diff options
author | 2021-08-26 00:22:51 +0530 | |
---|---|---|
committer | 2021-08-26 00:24:04 +0530 | |
commit | 108c76d514ac508023d2ab3ea9b92dff423b8182 (patch) | |
tree | 91ca49828bb4fab5a170afa853c3c4335fa3e8ad /UniversalVesAdapter/src/main | |
parent | e57d9b6e87560713a5ec71ec683b82b5c8603b33 (diff) |
VES-Mapper container running as root1.3.0
Issue-ID: DCAEGEN2-2859
Signed-off-by: Mukesh Paliwal <mukesh.paliwal1@huawei.com>
Change-Id: Ieb319d1c9fe255be9e9602a502371917af494e19
Diffstat (limited to 'UniversalVesAdapter/src/main')
-rwxr-xr-x | UniversalVesAdapter/src/main/docker/Dockerfile | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/UniversalVesAdapter/src/main/docker/Dockerfile b/UniversalVesAdapter/src/main/docker/Dockerfile new file mode 100755 index 0000000..d932c52 --- /dev/null +++ b/UniversalVesAdapter/src/main/docker/Dockerfile @@ -0,0 +1,24 @@ +FROM nexus3.onap.org:10001/onap/integration-java11:9.0.0 + +ENV HOSTALIASES /etc/host.aliases + +ARG user=VESAdapter +ARG group=VESAdapter + +USER root +WORKDIR /opt/app/VESAdapter + +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/VESAdapter && \ + chmod -R u+rw /opt/app/VESAdapter/ + +USER $user + +COPY --chown=$user:$group /. /opt/app/VESAdapter/ + +RUN chmod +x bin/run.sh + +EXPOSE 8080 8443 + +ENTRYPOINT ["bin/run.sh"] |