Skip to content

Copy licenses as non-root#1

Open
bwoolf1 wants to merge 1 commit intomasterfrom
bwoolf1-dockerfile
Open

Copy licenses as non-root#1
bwoolf1 wants to merge 1 commit intomasterfrom
bwoolf1-dockerfile

Conversation

@bwoolf1
Copy link
Copy Markdown
Owner

@bwoolf1 bwoolf1 commented May 14, 2021

Update the Dockerfile so that the licenses directory is copied as the non-root user.

@bwoolf1
Copy link
Copy Markdown
Owner Author

bwoolf1 commented May 14, 2021

Step 6 switches to the non-root user and Step 7 copies the licenses directory.

image

@bwoolf1
Copy link
Copy Markdown
Owner Author

bwoolf1 commented May 14, 2021

The pipeline completes successfully.

image

@bwoolf1
Copy link
Copy Markdown
Owner Author

bwoolf1 commented May 14, 2021

Vulnerability Advisor found no issues in the image.

image

@bwoolf1
Copy link
Copy Markdown
Owner Author

bwoolf1 commented May 14, 2021

The container has a /licenses directory that contains a LICENSE.txt file, both owned by user:group 1001:root.

image

@bwoolf1
Copy link
Copy Markdown
Owner Author

bwoolf1 commented May 14, 2021

The app in the container is running.

image

@bwoolf1 bwoolf1 marked this pull request as ready for review May 14, 2021 14:37
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant