rabbah commented on a change in pull request #4314: CosmosDB Cache Invalidation 
Service
URL: 
https://github.com/apache/incubator-openwhisk/pull/4314#discussion_r267389896
 
 

 ##########
 File path: core/cosmosdb/cache-invalidator/Dockerfile
 ##########
 @@ -0,0 +1,22 @@
+# Licensed to the Apache Software Foundation (ASF) under one or more 
contributor
+# license agreements; and to You under the Apache License, Version 2.0.
+
+FROM scala
+
+ENV UID=1001 \
+    NOT_ROOT_USER=owuser
+
+
+# Copy app jars
+ADD build/distributions/cache-invalidator.tar /
+
+COPY init.sh /
+RUN chmod +x init.sh
+
+RUN adduser -D -u ${UID} -h /home/${NOT_ROOT_USER} -s /bin/bash 
${NOT_ROOT_USER}
+
+# It is possible to run as non root if you dont need invoker capabilities out 
of the controller today
+#USER ${NOT_ROOT_USER}
 
 Review comment:
   is this relevant to this dockerfile?

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
[email protected]


With regards,
Apache Git Services

Reply via email to