aboutsummaryrefslogtreecommitdiffstats
path: root/Dockerfile
diff options
context:
space:
mode:
authorAlexander Mazuruk <a.mazuruk@samsung.com>2021-02-18 17:16:29 +0100
committerAlexander Mazuruk <a.mazuruk@samsung.com>2021-03-24 20:40:44 +0100
commit626ee392a16840390b11192422f524ce748699b5 (patch)
tree28d4b27729bddeced317f1dcd38a528fe5ee7892 /Dockerfile
parenta656aaa15881370ad88c220aa806954e263bf1d8 (diff)
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 <a.mazuruk@samsung.com> Change-Id: Ia0fec819dc4f83f4ca177f40cc012f9359da4bdc
Diffstat (limited to 'Dockerfile')
-rw-r--r--Dockerfile10
1 files changed, 6 insertions, 4 deletions
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