Skip to content

Update Dockerfile to create non-root user with UID 1000#158

Open
EmCmEdT wants to merge 1 commit intoplasmicapp:masterfrom
EmCmEdT:patch-1
Open

Update Dockerfile to create non-root user with UID 1000#158
EmCmEdT wants to merge 1 commit intoplasmicapp:masterfrom
EmCmEdT:patch-1

Conversation

@EmCmEdT
Copy link

@EmCmEdT EmCmEdT commented Dec 15, 2025

@vercel
Copy link

vercel bot commented Dec 15, 2025

@EmCmEdT is attempting to deploy a commit to the Plasmic Team on Vercel.

A member of the Team first needs to authorize it.

@github-actions
Copy link

github-actions bot commented Dec 15, 2025

All contributors have signed the CLA ✍️ ✅
Posted by the CLA Assistant Lite bot.

@EmCmEdT
Copy link
Author

EmCmEdT commented Dec 15, 2025

I have read, agree to, and hereby sign Plasmic's Individual Contributor License Agreement

RUN addgroup -S plasmic && \
adduser -S plasmic -G plasmic && \
# Delete container default node user
RUN deluser --remove-home node 2>/dev/null || true && \
Copy link
Contributor

Choose a reason for hiding this comment

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

Makes sense to me! But maybe it's possible to just use the builtin node user, if it doesn't break anything?

Copy link
Author

Choose a reason for hiding this comment

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

I can't say. I know very little about node users.

Copy link
Contributor

Choose a reason for hiding this comment

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

I just mean that the node:24-alpine has a user already (called node), so we can just use that. I'll test it out when I get the chance.

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