2023-06-09 04:00:20 +08:00
|
|
|
// See https://containers.dev
|
|
|
|
{
|
|
|
|
"name": "Python 3",
|
2024-05-09 23:04:17 +08:00
|
|
|
"image": "mcr.microsoft.com/devcontainers/python:1-3.9",
|
2023-06-09 04:00:20 +08:00
|
|
|
|
|
|
|
// See https://containers.dev/features
|
|
|
|
"features": {
|
|
|
|
"ghcr.io/devcontainers/features/git:1": {},
|
|
|
|
"ghcr.io/devcontainers/features/node:1": {},
|
|
|
|
"ghcr.io/devcontainers-contrib/features/ffmpeg-apt-get:1": {}
|
|
|
|
},
|
|
|
|
|
2023-08-23 22:35:43 +08:00
|
|
|
"hostRequirements": {
|
|
|
|
"cpus": 4,
|
|
|
|
"memory": "8gb",
|
|
|
|
"storage": "32gb"
|
2023-08-24 23:42:28 +08:00
|
|
|
},
|
2023-08-23 22:35:43 +08:00
|
|
|
|
2023-06-09 04:00:20 +08:00
|
|
|
"customizations": {
|
|
|
|
"vscode": {
|
|
|
|
"extensions": [
|
|
|
|
"ms-python.python",
|
|
|
|
"ms-python.vscode-pylance",
|
|
|
|
"ms-python.black-formatter",
|
|
|
|
"ms-toolsai.jupyter",
|
|
|
|
"esbenp.prettier-vscode",
|
|
|
|
"svelte.svelte-vscode",
|
|
|
|
"phoenisx.cssvar"
|
|
|
|
],
|
|
|
|
"remote.autoForwardPorts": false
|
|
|
|
}
|
|
|
|
},
|
|
|
|
|
|
|
|
"forwardPorts": [7860, 9876],
|
|
|
|
"portsAttributes": {
|
|
|
|
"7860": { "label": "gradio port" },
|
|
|
|
"9876": { "label": "gradio dev port" }
|
|
|
|
},
|
|
|
|
|
2023-08-23 22:35:43 +08:00
|
|
|
"postCreateCommand": "export NODE_OPTIONS=\"--max-old-space-size=8192\" && chmod +x scripts/install_gradio.sh scripts/install_test_requirements.sh scripts/build_frontend.sh && ./scripts/install_gradio.sh && ./scripts/install_test_requirements.sh && ./scripts/build_frontend.sh"
|
2023-06-09 04:00:20 +08:00
|
|
|
}
|