diff --git a/cloudknot/data/docker_reqs_ref_data/py3/ref1/Dockerfile b/cloudknot/data/docker_reqs_ref_data/py3/ref1/Dockerfile index 6f0dc50..39cede3 100644 --- a/cloudknot/data/docker_reqs_ref_data/py3/ref1/Dockerfile +++ b/cloudknot/data/docker_reqs_ref_data/py3/ref1/Dockerfile @@ -19,6 +19,9 @@ RUN groupadd -f staff \ # Copy the python script COPY --chown="cloudknot-user" "unit-testing-func.py" "/home/cloudknot-user/" +# Make the python script executable +RUN chmod +x "/home/cloudknot-user/unit-testing-func.py" + # Set user USER "cloudknot-user" diff --git a/cloudknot/data/docker_reqs_ref_data/py3/ref2/Dockerfile b/cloudknot/data/docker_reqs_ref_data/py3/ref2/Dockerfile index d4cbfe4..b91b5d8 100644 --- a/cloudknot/data/docker_reqs_ref_data/py3/ref2/Dockerfile +++ b/cloudknot/data/docker_reqs_ref_data/py3/ref2/Dockerfile @@ -19,6 +19,9 @@ RUN groupadd -f staff \ # Copy the python script COPY --chown="unit-test-username" "test-func-input.py" "/home/unit-test-username/" +# Make the python script executable +RUN chmod +x "/home/unit-test-username/test-func-input.py" + # Set user USER "unit-test-username" diff --git a/cloudknot/templates/Dockerfile.template b/cloudknot/templates/Dockerfile.template index 259aa92..22b0f86 100644 --- a/cloudknot/templates/Dockerfile.template +++ b/cloudknot/templates/Dockerfile.template @@ -19,6 +19,9 @@ RUN groupadd -f staff \ # Copy the python script COPY --chown="${username}" "${script_base_name}" "/home/${username}/" +# Make the python script executable +RUN chmod +x "/home/${username}/${script_base_name}" + # Set user USER "${username}"