Skip to content

Conversation

bpmct
Copy link
Member

@bpmct bpmct commented Aug 19, 2025

this is a universal image with many packages and dependencies pre-installed. cleaned up PR

@bpmct bpmct requested a review from matifali August 19, 2025 02:30
RUN yes | npx playwright install chrome

# Create `coder` user
RUN userdel -r codespace && \
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think deluser leaves the user's home directory.

You should use userdel --remove-all-files --remove-home

I am not sure how this will behave with all installed tools from the base image though.

Or better rename the user and move over the existing home directory

RUN usermod -l coder codespace \
 && usermod -d /home/coder -m coder \
 && groupmod -n coder codespace

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I confirmed userdel doesn't keep the home folder!

Screenshot 2025-08-19 at 4 11 30 PM

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I will build and test before approving. Can do today.

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.

2 participants