chore: Mount user Copilot instructions into devcontainer (#5607)

- Mount ~/.github/instructions from host to devcontainer
- Symlink mounted instructions to workspace .github/instructions
- Add .github/instructions to gitignore
This commit is contained in:
Oleg Isonen authored and GitHub committed 2026-02-05 17:25:46 +01:00
1 parent c28172eaa2
commit 724df48280
3 files changed
+10

No files matched your search

+1
View File
@@ -13,6 +13,7 @@ services:
# preserve history
- ./.local:/home/node/.local
- docker-data:/var/lib/docker
- ${HOME}/.github/instructions:/home/node/.github/instructions
entrypoint: ["/usr/local/share/docker-init.sh"]
# Overrides default command so things don't shut down after the process ends.
+6
View File
@@ -42,5 +42,11 @@ alias gitclean="(git remote | xargs git remote prune) && git branch -vv | egrep
alias gitrebase="git rebase --interactive main"
EOF
# Symlink workspace GitHub instructions to mounted user instructions (for Copilot)
if [ -d "/home/node/.github/instructions" ]; then
mkdir -p /workspaces/webstudio/.github
ln -sfn /home/node/.github/instructions /workspaces/webstudio/.github/instructions
fi
echo "postinstall.sh finished"
+3
View File
@@ -64,3 +64,6 @@ packages/prisma-client/src/__generated__
.temp
*.timestamp-*.mjs
# copilot instructions
.github/instructions