mirror of
https://github.com/jellyfin/jellyfin-vue.git
synced 2024-11-23 05:59:55 +00:00
perf(devcontainer): simplify initialization
Signed-off-by: GitHub <noreply@github.com>
This commit is contained in:
parent
722e475791
commit
b7f2714d97
@ -8,6 +8,7 @@
|
||||
"ghcr.io/devcontainers/features/docker-in-docker:2": {
|
||||
"dockerDashComposeVersion": "v2"
|
||||
},
|
||||
"ghcr.io/eitsupi/devcontainer-features/jq-likes:2": {},
|
||||
"ghcr.io/devcontainers/features/github-cli:1": {}
|
||||
},
|
||||
"forwardPorts": [3000],
|
||||
@ -17,9 +18,11 @@
|
||||
"onAutoForward": "notify"
|
||||
}
|
||||
},
|
||||
"onCreateCommand": "apt update -qq && apt install -y --no-install-recommends jq",
|
||||
"postCreateCommand": {
|
||||
"npm": "npm ci --no-audit",
|
||||
"no-yarn": "unset YARN_VERSION && rm -rf /opt/yarn*",
|
||||
"use-bash": "rm -rf /bin/sh && ln -s /bin/bash /bin/sh",
|
||||
"git-config": "git config --global core.editor 'code --wait'",
|
||||
"postunpack": ".devcontainer/postunpack.sh"
|
||||
},
|
||||
"postAttachCommand": "cat .vscode/extensions.json | jq -r .recommendations[] | xargs -n 1 code --install-extension",
|
||||
|
@ -1,9 +1,6 @@
|
||||
#!/bin/bash
|
||||
unset YARN_VERSION && rm -rf /opt/yarn*
|
||||
rm -rf /bin/sh && ln -s /bin/bash /bin/sh
|
||||
git config --global core.editor 'code --wait'
|
||||
|
||||
## Install Tauri dependencies
|
||||
apt update
|
||||
apt install -y --no-install-recommends $(cat packaging/tauri/apt_packages)
|
||||
rm -rf /var/lib/apt/lists /var/cache/apt/archives
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user