|
| 1 | +// For format details, see https://aka.ms/devcontainer.json. For config options, see the README at: |
| 2 | +// https://github.com/microsoft/vscode-dev-containers/tree/v0.179.0/containers/azure-functions-node |
| 3 | +{ |
| 4 | + "name": "Azure Functions & Node.js", |
| 5 | + "build": { |
| 6 | + "dockerfile": "Dockerfile", |
| 7 | + // Update 'VARIANT' to pick a Node.js version: 10, 12 |
| 8 | + "args": { "VARIANT": "12" } |
| 9 | + }, |
| 10 | + "forwardPorts": [7071], |
| 11 | + |
| 12 | + // Set *default* container specific settings.json values on container create. |
| 13 | + "settings": { |
| 14 | + "terminal.integrated.shell.linux": "/bin/bash" |
| 15 | + }, |
| 16 | + |
| 17 | + // Add the IDs of extensions you want installed when the container is created. |
| 18 | + "extensions": [ |
| 19 | + "ms-azuretools.vscode-azurefunctions", |
| 20 | + "dbaeumer.vscode-eslint", |
| 21 | + "svelte.svelte-vscode", |
| 22 | + "esbenp.prettier-vscode", |
| 23 | + "github.vscode-pull-request-github", |
| 24 | + "ms-azuretools.vscode-azurestaticwebapps" |
| 25 | + ], |
| 26 | + |
| 27 | + // Use 'postCreateCommand' to run commands after the container is created. |
| 28 | + "postCreateCommand": "(cd svelte-app && npm install) ; (cd api && npm install)", |
| 29 | + "postStartCommand": "(cd svelte-app && npm run build) ; (cd api && func start) ; (cd svelte-app && npm run local)", |
| 30 | + |
| 31 | + // Comment out connect as root instead. More info: https://aka.ms/vscode-remote/containers/non-root. |
| 32 | + "remoteUser": "node" |
| 33 | +} |
0 commit comments