Files
NNG/.devcontainer/devcontainer.json
2023-08-07 17:31:05 +02:00

29 lines
1.0 KiB
JSON

{
"dockerComposeFile": "./docker-compose.yml",
"service": "game",
"workspaceFolder": "/home/node/game",
"forwardPorts": [3000],
// These settings make sure that the created files (lake-packages etc.) are owned
// by the user and not `root`.
// see also https://containers.dev/implementors/json_reference/
// and https://code.visualstudio.com/remote/advancedcontainers/add-nonroot-user
"remoteUser": "node",
"updateRemoteUserUID": true,
// I don't know why I need this, but I did...
"overrideCommand": true,
// TODO: `lake` and `npm install` could run simultaneously using `&`
// the only reason I didn't do it is because the output gets mixed.
"postCreateCommand": "(cd ~/lean4game && npm install) && (cd ~/game && lake update && lake exe cache get && lake build)",
"postAttachCommand": "cd ~/lean4game && npm start",
"customizations": {
"vscode": {
"settings": {
"remote.autoForwardPorts": false
},
"extensions": [
"leanprover.lean4"
]
}
}
}