Skip to content

Commit

Permalink
Merge pull request #310 from maouw/hotfix/309-entrypoint-permissions
Browse files Browse the repository at this point in the history
  • Loading branch information
arokem authored Mar 9, 2024
2 parents 7cf9c0a + 91bf67e commit 7644eb7
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 0 deletions.
3 changes: 3 additions & 0 deletions cloudknot/data/docker_reqs_ref_data/py3/ref1/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -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"

Expand Down
3 changes: 3 additions & 0 deletions cloudknot/data/docker_reqs_ref_data/py3/ref2/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -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"

Expand Down
3 changes: 3 additions & 0 deletions cloudknot/templates/Dockerfile.template
Original file line number Diff line number Diff line change
Expand Up @@ -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}"

Expand Down

0 comments on commit 7644eb7

Please sign in to comment.