Change file permissions for nginx files 42/106142/1 2.0.2
authorkrishnaa96 <krishna.moorthy6@wipro.com>
Thu, 16 Apr 2020 18:33:50 +0000 (00:03 +0530)
committerkrishnaa96 <krishna.moorthy6@wipro.com>
Thu, 16 Apr 2020 18:35:16 +0000 (00:05 +0530)
Issue-ID: OPTFRA-734
Signed-off-by: krishnaa96 <krishna.moorthy6@wipro.com>
Change-Id: I939faa52c1825479e6ad42a755fc357c067de064

conductor/docker/Dockerfile

index 40c9e9a..38afc0e 100644 (file)
@@ -37,7 +37,8 @@ RUN addgroup -S $APP_GROUP && adduser -S -G $APP_USER $APP_GROUP
 RUN mkdir -p /etc/nginx/ssl && \
     mkdir -p /var/log/conductor && \
     mkdir -p /run/conductor && \
-    mkdir -p /run/nginx
+    mkdir -p /run/nginx && \
+    mkdir -p /var/tmp/nginx
 
 # Install the required libraries
 RUN apk --update add py-setuptools && \
@@ -63,5 +64,5 @@ COPY app.wsgi /etc/nginx/conductor.wsgi
 COPY api_paste.ini /usr/local/etc/conductor/api_paste.ini
 
 # Set ownership to application user
-RUN chown $APP_USER:$APP_GROUP -R /opt/has/ /var/log/
+RUN chown $APP_USER:$APP_GROUP -R /opt/has/ /var/log/ /var/lib/nginx /var/tmp/nginx /run/nginx /run/conductor
 USER $APP_USER