Skip to content

chore: run dev containers as non-root users - #202

Open
vee1e wants to merge 1 commit into
c2siorg:mainfrom
vee1e:fix/issue-71-non-root-containers
Open

chore: run dev containers as non-root users#202
vee1e wants to merge 1 commit into
c2siorg:mainfrom
vee1e:fix/issue-71-non-root-containers

Conversation

@vee1e

@vee1e vee1e commented Apr 12, 2026

Copy link
Copy Markdown
Contributor

Run dev containers as non-root users

Description

  • Added non-root runtime users in backend and webapp dev Dockerfiles.
  • Set writable ownership for backend app/output paths, then switched runtime to USER non-root.
  • Kept startup commands unchanged to preserve dev workflow.

Additional context

All test cases pass

docker build -f gdbui_server/DockerFile.dev -t gdbui-server:issue-71 gdbui_server  # pass
docker build -f webapp/DockerFile.dev -t gdbui-webapp:issue-71 webapp              # pass
docker run --rm gdbui-server:issue-71 id -u                                        # 999
docker run --rm gdbui-webapp:issue-71 id -u                                        # 1000
docker run --rm gdbui-server:issue-71 sh -lc 'python -c "from pathlib import Path; Path(\"output/_perm_test.tmp\").write_text(\"ok\"); print(\"ok\")"'  # ok

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