Skip to content

Copy licenses as non-root#1

Open
bwoolf1 wants to merge 1 commit into
masterfrom
bwoolf1-dockerfile
Open

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

Conversation

@bwoolf1

@bwoolf1 bwoolf1 commented May 14, 2021

Copy link
Copy Markdown
Owner

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

@bwoolf1

bwoolf1 commented May 14, 2021

Copy link
Copy Markdown
Owner Author

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

image

@bwoolf1

bwoolf1 commented May 14, 2021

Copy link
Copy Markdown
Owner Author

The pipeline completes successfully.

image

@bwoolf1

bwoolf1 commented May 14, 2021

Copy link
Copy Markdown
Owner Author

Vulnerability Advisor found no issues in the image.

image

@bwoolf1

bwoolf1 commented May 14, 2021

Copy link
Copy Markdown
Owner Author

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

image

@bwoolf1

bwoolf1 commented May 14, 2021

Copy link
Copy Markdown
Owner Author

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