From e69644d7b4dff1e0661ac3979deff8a7b7828c75 Mon Sep 17 00:00:00 2001 From: Danny Avila <110412045+danny-avila@users.noreply.github.com> Date: Mon, 11 Dec 2023 22:39:24 -0500 Subject: [PATCH] fix: docker issues with volume mapping (#1330) * fix: docker issues with volume mapping * Update docker-compose.yml --------- Co-authored-by: stunt_pilot --- config/update.js | 2 +- docker-compose.yml | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/config/update.js b/config/update.js index f27a271d2..5a36326f2 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 7a450c039..b4f093012 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