From 509e9961078a7d82c2fc69f0377904f6e9e827f1 Mon Sep 17 00:00:00 2001 From: Dedy Martadinata S Date: Fri, 1 Dec 2023 18:56:03 +0700 Subject: [PATCH] Fix `.npm` Somehow on npm startup it created directory at `/.npm` rather than `/app/.npm`, explicitly define `.npm` folder path --- Dockerfile | 1 + 1 file changed, 1 insertion(+) diff --git a/Dockerfile b/Dockerfile index de05907e..22c25bad 100644 --- a/Dockerfile +++ b/Dockerfile @@ -19,6 +19,7 @@ ENV USER=youtube ENV NO_UPDATE_NOTIFIER=true ENV PM2_HOME=/app/pm2 ENV ALLOW_CONFIG_MUTATIONS=true +ENV npm_config_cache=/app/.npm # Use NVM to get specific node version ENV NODE_VERSION=16.14.2