summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorkrishnaa96 <krishna.moorthy6@wipro.com>2020-04-17 00:03:50 +0530
committerkrishnaa96 <krishna.moorthy6@wipro.com>2020-04-17 00:05:16 +0530
commitcf093b4e3aa0726395424850439c7ceab61f7fb9 (patch)
tree467c89b09bd8f8536a258a74edd7bffa9982d36e
parent78820f845266c3fcc5eb8599b422147a7d25fdb8 (diff)
Change file permissions for nginx files2.0.2
Issue-ID: OPTFRA-734 Signed-off-by: krishnaa96 <krishna.moorthy6@wipro.com> Change-Id: I939faa52c1825479e6ad42a755fc357c067de064
-rw-r--r--conductor/docker/Dockerfile5
1 files changed, 3 insertions, 2 deletions
diff --git a/conductor/docker/Dockerfile b/conductor/docker/Dockerfile
index 40c9e9a..38afc0e 100644
--- a/conductor/docker/Dockerfile
+++ b/conductor/docker/Dockerfile
@@ -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