chore(codespaces): switch to node as base image (#2100)

This commit is contained in:
Fernando Fernández 2023-10-02 19:03:34 +02:00 committed by GitHub
parent 2ba1de8bbe
commit 57403c2c7e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1,6 +1,6 @@
{
"name": "jellyfin-vue Codespace (with support for Tauri and Docker development)",
"image": "mcr.microsoft.com/devcontainers/typescript-node:0-18",
"image": "node:18-slim",
"features": {
"ghcr.io/devcontainers/features/rust:1": {
"profile": "default"
@ -10,7 +10,6 @@
},
"ghcr.io/devcontainers/features/github-cli:1": {}
},
"containerEnv": { "SHELL": "/bin/bash" },
"forwardPorts": [3000],
"portsAttributes": {
"3000": {
@ -18,6 +17,7 @@
"onAutoForward": "notify"
}
},
"onCreateCommand": "unset YARN_VERSION && rm -rf /bin/sh /opt/yarn* && ln -s /bin/bash /bin/sh && apt update && apt install -y --no-install-recommends jq && apt clean && apt autoclean && rm -rf /var/lib/apt/lists /var/cache/apt/archives",
"postCreateCommand": "npm ci --no-audit",
"postAttachCommand": "cat .vscode/extensions.json | jq -r .recommendations[] | xargs -n 1 code --install-extension",
"hostRequirements": { "cpus": 4, "memory": "8gb" }