Skip to content

Commit

Permalink
feat: devcontainer
Browse files Browse the repository at this point in the history
  • Loading branch information
leehanchung committed Sep 9, 2023
1 parent f9a559d commit 91728f1
Show file tree
Hide file tree
Showing 3 changed files with 24 additions and 17 deletions.
39 changes: 22 additions & 17 deletions .devcontainer/devcontainer.json
Original file line number Diff line number Diff line change
@@ -1,19 +1,24 @@
{
"image": "mcr.microsoft.com/vscode/devcontainers/universal",
"features": {
"ghcr.io/devcontainers-contrib/features/pre-commit:2": {
"version": "latest"
}
},
"postCreateCommand": ".devcontainer/post_create_command.sh",
"postStartCommand": "git config --global --add safe.directory ${containerWorkspaceFolder}",
"customizations": {
"vscode": {
"extensions": [
"GitHub.copilot",
"ms-python.python",
"esbenp.prettier-vscode"
]
}
"name": "llm-pdf-qa-workshop",
"image": "mcr.microsoft.com/vscode/devcontainers/universal",
"features": {
"ghcr.io/devcontainers-contrib/features/pre-commit:2": {
"version": "latest"
}
}
},
"mounts": [
"source=${env:HOME}/.gitconfig,target=/root/.gitconfig,type=bind",
"source=${env:HOME}/.ssh,target=/root/.ssh,type=bind"
],
"postCreateCommand": ".devcontainer/post_create_command.sh",
"postStartCommand": "git config --global --add safe.directory ${containerWorkspaceFolder}",
"customizations": {
"vscode": {
"extensions": [
"GitHub.copilot",
"ms-python.python",
"esbenp.prettier-vscode"
]
}
}
}
Empty file modified .devcontainer/post_create_command.sh
100644 → 100755
Empty file.
2 changes: 2 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
FROM python:3.10-slim

0 comments on commit 91728f1

Please sign in to comment.