[connfa-web] Make sure the connfa user and group are actually there



commit 9a3e09c69455f92af6e2d4fd78f0a7ff030224c7
Author: Andrea Veri <averi redhat com>
Date:   Tue Jun 18 19:09:15 2019 +0200

    Make sure the connfa user and group are actually there

 Dockerfile | 8 +++++---
 1 file changed, 5 insertions(+), 3 deletions(-)
---
diff --git a/Dockerfile b/Dockerfile
index 82f8e03..e2af542 100644
--- a/Dockerfile
+++ b/Dockerfile
@@ -4,9 +4,11 @@ USER root
 RUN yum -y install git && \
     rm -rf /var/cache/yum/* && yum clean all
 RUN wget 
https://raw.githubusercontent.com/composer/getcomposer.org/3c21a2c1affd88dd3fec6251e91a53e440bc2198/web/installer
 -O - -q | php -- --quiet --install-dir=/usr/bin/ --filename=composer
-RUN install -dm750 -o 1000630000 -g root /app
+RUN groupadd connfa -g 1000630000 && \
+    useradd connfa -g 1000630000 -u 1000630000 -G apache -r -l
+RUN install -dm750 -o connfa -g connfa /app
 
-USER 1000630000
+USER connfa
 WORKDIR /app
 RUN git clone https://github.com/lemberg/connfa-integration-server connfa
 RUN cd connfa && composer install --no-interaction --no-suggest --no-dev
@@ -18,7 +20,7 @@ COPY httpd.conf /etc/httpd/conf.d/connfa.conf
 
 WORKDIR /app/connfa
 
-RUN chown -R 1000630000:0 /app/connfa && \
+RUN chown -R connfa:connfa /app/connfa && \
     chmod -R 664 /app/connfa && \
     find /app/connfa -type d -exec chmod 775 {} +
  


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]