chore: devcontainer pre-creates as vscode, resilient postStart script
This commit is contained in:
parent
0a2b73f3b4
commit
74831483eb
3 changed files with 28 additions and 4 deletions
|
|
@ -27,9 +27,14 @@ RUN uv python install 3.12 \
|
|||
# Trust the workspace bind mount (source on Windows FS -> uid mismatch)
|
||||
RUN git config --system --add safe.directory /workspaces/kirche-einfach
|
||||
|
||||
# Pre-create named-volume targets (volumes inherit image content on first mount)
|
||||
RUN mkdir -p /workspaces/kirche-einfach/backend/.venv \
|
||||
/workspaces/kirche-einfach/frontend/node_modules
|
||||
# Pre-create named-volume targets (volumes inherit image content on first mount).
|
||||
# The backend venv is created as `vscode` so VS Code's Python extension finds an
|
||||
# interpreter immediately on first attach, before postCreateCommand runs `uv sync`.
|
||||
USER vscode
|
||||
RUN mkdir -p /workspaces/kirche-einfach/backend \
|
||||
&& uv venv /workspaces/kirche-einfach/backend/.venv \
|
||||
&& mkdir -p /workspaces/kirche-einfach/frontend/node_modules
|
||||
USER root
|
||||
|
||||
# opencode (as non-root user)
|
||||
USER vscode
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue