This is an automated email from the ASF dual-hosted git repository.
riemer pushed a commit to branch dev
in repository https://gitbox.apache.org/repos/asf/streampipes.git
The following commit(s) were added to refs/heads/dev by this push:
new 0cf4d5a03 [hotfix] Use non-root dockerfile for nginx
0cf4d5a03 is described below
commit 0cf4d5a039d7e583fd453dccddf2ab2946f7210b
Author: Dominik Riemer <[email protected]>
AuthorDate: Fri Feb 3 15:44:01 2023 +0100
[hotfix] Use non-root dockerfile for nginx
---
ui/Dockerfile | 6 ++++++
1 file changed, 6 insertions(+)
diff --git a/ui/Dockerfile b/ui/Dockerfile
index e89d89332..a1972a33c 100644
--- a/ui/Dockerfile
+++ b/ui/Dockerfile
@@ -23,7 +23,13 @@ COPY nginx_config/ssl.conf /app/nginx-confs/ssl.conf
COPY docker-entrypoint.sh /
+RUN chown -R nginx:nginx /etc/nginx/
RUN chown -R nginx:nginx /usr/share/nginx/html/
+RUN chown -R nginx:nginx /var/cache/nginx/
+RUN chown -R nginx:nginx /var/run/
+RUN chown -R nginx:nginx /usr/share/nginx/html/
+
+USER 101:101
ENTRYPOINT ["sh", "/docker-entrypoint.sh"]
CMD ["nginx", "-g", "daemon off;"]