diff options
author | efiacor <fiachra.corcoran@est.tech> | 2020-02-12 23:31:16 +0000 |
---|---|---|
committer | efiacor <fiachra.corcoran@est.tech> | 2020-02-13 13:27:07 +0000 |
commit | bc9f41ed3e67ed0350951de62331b3cd87c6aa78 (patch) | |
tree | 2d98fec426d48a3fd2bed9d01db2c9b2d50ae1ad /components/pm-subscription-handler/Dockerfile | |
parent | 296f6a9817c28d9453fe697ae3dae6af37610eec (diff) |
Fix PMHS logs dir setup
# Refactoring test|prod init
Signed-off-by: efiacor <fiachra.corcoran@est.tech>
Change-Id: Ib073cb762a7750fca7bdf415cf5080d04f7bda51
Issue-ID: DCAEGEN2-2078
Diffstat (limited to 'components/pm-subscription-handler/Dockerfile')
-rw-r--r-- | components/pm-subscription-handler/Dockerfile | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/components/pm-subscription-handler/Dockerfile b/components/pm-subscription-handler/Dockerfile index bb3f63c6..b1f3129b 100644 --- a/components/pm-subscription-handler/Dockerfile +++ b/components/pm-subscription-handler/Dockerfile @@ -30,7 +30,10 @@ ENV PMSHUSER=pmsh \ WORKDIR $APPDIR # add non root user & group -RUN addgroup --system $PMSHUSER && adduser --ingroup $PMSHUSER --system $PMSHUSER +RUN addgroup --system $PMSHUSER && adduser --ingroup $PMSHUSER --system $PMSHUSER && \ + # create and chown the LOGS_PATH + mkdir -p $LOGS_PATH && \ + chown -R $PMSHUSER:$PMSHUSER $LOGS_PATH COPY setup.py ./ COPY requirements.txt ./ |