#0000 - Grant coder user ownership of /workspaces in Dockerfile #4

Merged
GuillaumeHemmen merged 1 commit from fix/workspaces-coder-ownership into master 2026-05-23 20:38:00 +00:00

Summary

  • In the coder Docker stage, /workspaces was implicitly created by the WORKDIR directive and ended up owned by root, leaving the non-root coder user without write access to its own working directory.
  • Add an explicit mkdir -p /workspaces && chown -R coder:coder /workspaces step (run as root, before the USER coder switch) so the coder user has full rights to the directory at runtime.
  • Only the coder stage is affected; the ci stage runs as root and is unchanged.
## Summary - In the `coder` Docker stage, `/workspaces` was implicitly created by the `WORKDIR` directive and ended up owned by `root`, leaving the non-root `coder` user without write access to its own working directory. - Add an explicit `mkdir -p /workspaces && chown -R coder:coder /workspaces` step (run as root, before the `USER coder` switch) so the `coder` user has full rights to the directory at runtime. - Only the `coder` stage is affected; the `ci` stage runs as root and is unchanged.
#0000 - Create /workspaces directory and set ownership for coder user in Dockerfile
All checks were successful
/ docker-dev-ci (push) Successful in 2m26s
/ docker-dev-coder (push) Successful in 3m31s
b1a2617a4e
GuillaumeHemmen scheduled this pull request to auto merge when all checks succeed 2026-05-23 20:35:20 +00:00
GuillaumeHemmen deleted branch fix/workspaces-coder-ownership 2026-05-23 20:38:00 +00:00
Sign in to join this conversation.
No reviewers
No labels
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
actions/sindri!4
No description provided.