[guadec-web/oscp-2018] Change USER after the actual chown operation



commit aa82cee746dcbc1631b092b1b421a0a16a1b925d
Author: Andrea Veri <averi redhat com>
Date:   Fri Sep 28 14:34:40 2018 +0200

    Change USER after the actual chown operation

 Dockerfile | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/Dockerfile b/Dockerfile
index 8c2b484..8b8c093 100644
--- a/Dockerfile
+++ b/Dockerfile
@@ -19,12 +19,12 @@ ENV GUADEC_HOME=/guadec-web \
 
 RUN useradd -u 1001 -g 0 -d ${GUADEC_HOME}/ -r -s /usr/sbin/nologin guadecweb
 
-USER 1001
-
 RUN chown -R 1001:0 ${GUADEC_HOME} && \
     chmod -R 664 ${GUADEC_HOME} && \
     find ${GUADEC_HOME} -type d -exec chmod 775 {} +
 
+USER 1001
+
 EXPOSE 8080
 
 CMD ["/entrypoint.sh"]


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