diff options
author | Vijay Venkatesh Kumar <vv770d@att.com> | 2021-03-29 21:50:31 +0000 |
---|---|---|
committer | Gerrit Code Review <gerrit@onap.org> | 2021-03-29 21:50:31 +0000 |
commit | ea8f93acb6cac13c70a30492b41431182de76984 (patch) | |
tree | aedd1615ff9b39ab09917650b65869ea56aa4071 /Dockerfile | |
parent | 11940887951d2ed30fb4471d1ffe4bf120737abd (diff) | |
parent | 626ee392a16840390b11192422f524ce748699b5 (diff) |
Merge "Change python baseOS img to integration-python"2.5.4
Diffstat (limited to 'Dockerfile')
-rw-r--r-- | Dockerfile | 10 |
1 files changed, 6 insertions, 4 deletions
@@ -1,4 +1,4 @@ -FROM python:3.8.2-alpine3.11 +FROM nexus3.onap.org:10001/onap/integration-python:8.0.0 MAINTAINER tommy@research.att.com EXPOSE 10000 @@ -6,11 +6,13 @@ EXPOSE 10000 # it is an ONAP requirement to make, and switch to, a non root user ARG user=onap ARG group=onap -RUN addgroup -S $group && adduser -S -D -h /home/$user $user $group && \ + +USER root +RUN mkdir -p /home/$user && \ chown -R $user:$group /home/$user && \ - mkdir /var/log/$user && \ + mkdir -p /var/log/$user && \ chown -R $user:$group /var/log/$user && \ - mkdir /app && \ + mkdir -p /app && \ chown -R $user:$group /app WORKDIR /app |