From 626ee392a16840390b11192422f524ce748699b5 Mon Sep 17 00:00:00 2001 From: Alexander Mazuruk Date: Thu, 18 Feb 2021 17:16:29 +0100 Subject: Change python baseOS img to integration-python Switched to latest version (current seccom recommndation) Benefits from switching over: * minimal {java11,python} images maintained by integration team * using currently "blessed by seccom" versions (:latest tag used) * should limit spread of legal issues across layers * integration images will be the first to have automated compliance documentation * should limit spread of base layers (contributing to deployment footprint - more base layers = more to download, more to store etc...) Issue-ID: INT-1864 Issue-ID: DCAEGEN2-2420 Signed-off-by: Alexander Mazuruk Change-Id: Ia0fec819dc4f83f4ca177f40cc012f9359da4bdc --- Dockerfile | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) (limited to 'Dockerfile') diff --git a/Dockerfile b/Dockerfile index db32b24..091c343 100644 --- a/Dockerfile +++ b/Dockerfile @@ -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 -- cgit 1.2.3-korg