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