Skip to content

Infisical is the open-source platform for securing secrets, certificates, access, and AI Agents.

fix: backend image failed to start due to npm cache permission

Gregorius Agung Narindra Aditantyo632c78f401f0
diff --git a/backend/Dockerfile b/backend/Dockerfile
index e24cacaf21..249ece4f6f 100644
--- a/backend/Dockerfile
+++ b/backend/Dockerfile
@@ -14,6 +14,8 @@ FROM node:16-alpine
WORKDIR /app
+ENV npm_config_cache /home/node/.npm
+
COPY package*.json ./
RUN npm ci --only-production