mirror of
https://github.com/gradio-app/gradio.git
synced 2025-03-25 12:10:31 +08:00
Fix devcontainer postCreateCommand (#5289)
* add chmod commands to grant execute permissions to each script before running them * increase the memory limit * Increase memory requirement to 8 * Setting a minimum specification for codespace machines
This commit is contained in:
parent
cdfd42174a
commit
beca04fd29
@ -10,6 +10,12 @@
|
||||
"ghcr.io/devcontainers-contrib/features/ffmpeg-apt-get:1": {}
|
||||
},
|
||||
|
||||
"hostRequirements": {
|
||||
"cpus": 4,
|
||||
"memory": "8gb",
|
||||
"storage": "32gb"
|
||||
},
|
||||
|
||||
"customizations": {
|
||||
"vscode": {
|
||||
"extensions": [
|
||||
@ -31,5 +37,6 @@
|
||||
"9876": { "label": "gradio dev port" }
|
||||
},
|
||||
|
||||
"postCreateCommand": "bash scripts/install_gradio.sh && scripts/install_test_requirements.sh && bash scripts/build_frontend.sh"
|
||||
"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"
|
||||
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user