Docker: Fix sharp not installing due to npm cache permissions
Moving the npm cache folder into the /app folder solved the permission issues Fixes #8
This commit is contained in:
1
.gitignore
vendored
1
.gitignore
vendored
@@ -19,6 +19,7 @@ yarn-debug.log*
|
|||||||
yarn-error.log*
|
yarn-error.log*
|
||||||
lerna-debug.log*
|
lerna-debug.log*
|
||||||
.pnpm-debug.log*
|
.pnpm-debug.log*
|
||||||
|
.npm_cache
|
||||||
|
|
||||||
# Diagnostic reports (https://nodejs.org/api/report.html)
|
# Diagnostic reports (https://nodejs.org/api/report.html)
|
||||||
report.[0-9]*.[0-9]*.[0-9]*.[0-9]*.json
|
report.[0-9]*.[0-9]*.[0-9]*.[0-9]*.json
|
||||||
|
|||||||
@@ -2,6 +2,6 @@ version: "3.7"
|
|||||||
|
|
||||||
services:
|
services:
|
||||||
bot:
|
bot:
|
||||||
command: sh -c "npm install && npm run dev"
|
command: sh -c "npm config set cache /app/.npm_cache --global && npm install && npm run dev"
|
||||||
ports:
|
ports:
|
||||||
- "9229:9229"
|
- "9229:9229"
|
||||||
@@ -3,7 +3,7 @@ version: "3.7"
|
|||||||
services:
|
services:
|
||||||
bot:
|
bot:
|
||||||
image: node:16.9.0-alpine
|
image: node:16.9.0-alpine
|
||||||
command: sh -c "npm install && node ."
|
command: sh -c "npm config set cache /app/.npm_cache --global && npm install && node ."
|
||||||
restart: unless-stopped
|
restart: unless-stopped
|
||||||
environment:
|
environment:
|
||||||
- TZ=Europe/Berlin
|
- TZ=Europe/Berlin
|
||||||
|
|||||||
Reference in New Issue
Block a user