mirror of
https://github.com/advplyr/audiobookshelf.git
synced 2026-07-27 03:31:46 +00:00
Updated dev container
Includes tone executable Automatically runs npm ci and generates client files
This commit is contained in:
parent
7883d4a97f
commit
ef56714573
2 changed files with 17 additions and 4 deletions
|
|
@ -1,4 +1,10 @@
|
||||||
FROM mcr.microsoft.com/vscode/devcontainers/javascript-node:16
|
FROM mcr.microsoft.com/vscode/devcontainers/javascript-node:16
|
||||||
RUN apt-get update && export DEBIAN_FRONTEND=noninteractive \
|
|
||||||
&& apt-get install ffmpeg gnupg2 -y
|
COPY --from=sandreas/tone:v0.1.2 /usr/local/bin/tone /usr/local/bin/
|
||||||
|
|
||||||
ENV NODE_ENV=development
|
ENV NODE_ENV=development
|
||||||
|
|
||||||
|
RUN apt-get update && \
|
||||||
|
DEBIAN_FRONTEND=noninteractive \
|
||||||
|
apt-get install ffmpeg gnupg curl tzdata -y && \
|
||||||
|
rm -rf /var/lib/apt/lists/*
|
||||||
|
|
|
||||||
|
|
@ -1,12 +1,19 @@
|
||||||
{
|
{
|
||||||
"build": { "dockerfile": "Dockerfile" },
|
"build": { "dockerfile": "Dockerfile" },
|
||||||
"mounts": [
|
"mounts": [
|
||||||
"source=abs-node-node_modules,target=${containerWorkspaceFolder}/node_modules,type=volume"
|
"source=abs-server-node_modules,target=${containerWorkspaceFolder}/node_modules,type=volume",
|
||||||
|
"source=abs-client-node_modules,target=${containerWorkspaceFolder}/client/node_modules,type=volume"
|
||||||
],
|
],
|
||||||
"features": {
|
"features": {
|
||||||
"fish": "latest"
|
"fish": "latest"
|
||||||
},
|
},
|
||||||
"extensions": [
|
"extensions": [
|
||||||
"eamodio.gitlens"
|
"eamodio.gitlens"
|
||||||
]
|
],
|
||||||
|
"remoteUser": "node",
|
||||||
|
"postStartCommand": {
|
||||||
|
"git": "git config --global --add safe.directory ${containerWorkspaceFolder}",
|
||||||
|
"server": "cd ${containerWorkspaceFolder} && sudo chown $(id -u):$(id -g) node_modules && npm ci",
|
||||||
|
"client": "cd ${containerWorkspaceFolder}/client && sudo chown $(id -u):$(id -g) node_modules && npm ci && npm run generate"
|
||||||
|
}
|
||||||
}
|
}
|
||||||
Loading…
Add table
Add a link
Reference in a new issue