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:
2022-09-08 12:12:42 +02:00
parent a4e5679d40
commit fd209fbbda
3 changed files with 3 additions and 2 deletions

View File

@@ -3,7 +3,7 @@ version: "3.7"
services:
bot:
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
environment:
- TZ=Europe/Berlin