From 541cdb3afa2b8543e1e6969816f47f165cec3023 Mon Sep 17 00:00:00 2001 From: "Alex Ellis (OpenFaaS Ltd)" Date: Thu, 28 May 2020 10:12:29 +0100 Subject: [PATCH] Add note for chmod Explains why chmod is used - for OpenShift users where any user ID can be substituted. Signed-off-by: Alex Ellis (OpenFaaS Ltd) --- template/python-armhf/Dockerfile | 1 + template/python/Dockerfile | 1 + template/python3-armhf/Dockerfile | 1 + template/python3-debian/Dockerfile | 1 + template/python3/Dockerfile | 1 + 5 files changed, 5 insertions(+) diff --git a/template/python-armhf/Dockerfile b/template/python-armhf/Dockerfile index 0ae0929b..b6e2fa71 100644 --- a/template/python-armhf/Dockerfile +++ b/template/python-armhf/Dockerfile @@ -41,6 +41,7 @@ USER root COPY function function +# Allow any user-id for OpenShift users. RUN chown -R app:app ./ && \ chmod -R 777 /home/app/python diff --git a/template/python/Dockerfile b/template/python/Dockerfile index c0deab80..be17e7e1 100644 --- a/template/python/Dockerfile +++ b/template/python/Dockerfile @@ -39,6 +39,7 @@ USER root COPY function function +# Allow any user-id for OpenShift users. RUN chown -R app:app ./ && \ chmod -R 777 /home/app/python diff --git a/template/python3-armhf/Dockerfile b/template/python3-armhf/Dockerfile index 87f98abc..b00918c5 100644 --- a/template/python3-armhf/Dockerfile +++ b/template/python3-armhf/Dockerfile @@ -39,6 +39,7 @@ USER root COPY function function +# Allow any user-id for OpenShift users. RUN chown -R app:app ./ && \ chmod -R 777 /home/app/python diff --git a/template/python3-debian/Dockerfile b/template/python3-debian/Dockerfile index 72931a57..a36cbc84 100644 --- a/template/python3-debian/Dockerfile +++ b/template/python3-debian/Dockerfile @@ -40,6 +40,7 @@ USER root COPY function function +# Allow any user-id for OpenShift users. RUN chown -R app:app ./ && \ chmod -R 777 /home/app/python diff --git a/template/python3/Dockerfile b/template/python3/Dockerfile index c9b2ae15..22704646 100644 --- a/template/python3/Dockerfile +++ b/template/python3/Dockerfile @@ -40,6 +40,7 @@ USER root COPY function function +# Allow any user-id for OpenShift users. RUN chown -R app:app ./ && \ chmod -R 777 /home/app/python