Add .devcontainer + minor changes
This commit is contained in:
parent
99831ff824
commit
8aeff18162
16 changed files with 59 additions and 23 deletions
1
source/common/.devcontainer/Dockerfile
Normal file
1
source/common/.devcontainer/Dockerfile
Normal file
|
@ -0,0 +1 @@
|
|||
FROM local/nodejs/dev:18
|
7
source/common/.devcontainer/devcontainer.json
Normal file
7
source/common/.devcontainer/devcontainer.json
Normal file
|
@ -0,0 +1,7 @@
|
|||
{
|
||||
"name": "$(appName)",
|
||||
"workspaceFolder": "/home/project/$(appName)",
|
||||
"dockerComposeFile": "docker-compose.yml",
|
||||
"service": "$(appName)",
|
||||
"postCreateCommand": "sudo chown iamuser:iamuser -R /home/project",
|
||||
}
|
18
source/common/.devcontainer/docker-compose.yml
Normal file
18
source/common/.devcontainer/docker-compose.yml
Normal file
|
@ -0,0 +1,18 @@
|
|||
version: "3"
|
||||
|
||||
name: $(appName)
|
||||
|
||||
volumes:
|
||||
node_modules:
|
||||
pnpm-store:
|
||||
|
||||
services:
|
||||
seedling:
|
||||
build:
|
||||
context: .
|
||||
container_name: $(appName)
|
||||
volumes:
|
||||
- ../:/home/project/$(appName)
|
||||
- node_modules:/home/project/seedling/node_modules
|
||||
- pnpm-store:/home/project/seedling/.pnpm-store
|
||||
command: sleep infinity
|
Loading…
Add table
Add a link
Reference in a new issue