Skip to content

Enhanced ChatGPT Clone: Features Agents, MCP, Skills, DeepSeek, Anthropic, AWS, OpenAI, Responses API, Azure, Groq, o1, GPT-5, Mistral, OpenRouter, Vertex AI, Gemini, Artifacts, AI model switching, message search, Code Interpreter, langchain, DALL-E-3, OpenAPI Actions, Functions, Secure Multi-User Auth, Presets, open-source for self-hosting. Active

fix: docker issues with volume mapping (#1330)

Danny Avilae69644d7b4df
diff --git a/config/update.js b/config/update.js
index f27a271d27..5a36326f23 100644
--- a/config/update.js
+++ b/config/update.js
@@ -97,7 +97,7 @@ async function validateDockerRunning() {
console.purple('Building new LibreChat image...');
const buildCommand = `${sudo}docker-compose ${
singleCompose ? '-f ./docs/dev/single-compose.yml ' : ''
- }build`;
+ }build --no-cache`;
console.orange(buildCommand);
execSync(buildCommand, { stdio: 'inherit' });
} else {
diff --git a/docker-compose.yml b/docker-compose.yml
index 7a450c0397..b4f0930123 100644
--- a/docker-compose.yml
+++ b/docker-compose.yml
@@ -38,6 +38,8 @@ services:
- MEILI_HOST=http://meilisearch:7700
- MEILI_HTTP_ADDR=meilisearch:7700
volumes:
+ - /app/client/node_modules # node_modules mapping necessary for module persistence
+ - /app/api/node_modules
- ./api:/app/api
- ./.env:/app/.env
- ./.env.development:/app/.env.development