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
TypeScript aianthropicartifactsawsazurechatgptchatgpt-cloneclaudeclonedeepseekgeminigooglegpt-5librechatmcpo1openairesponses-apivisionwebui
🏷️ chore: Remove Docker Images by Named Tag in `deployed-update.js` (#12138)
Danny Avila8b18a1644601
diff --git a/config/deployed-update.js b/config/deployed-update.jsindex 7b2a3bc594..7ce6eb106d 100644--- a/config/deployed-update.js+++ b/config/deployed-update.js@@ -29,7 +29,7 @@ const shouldRebase = process.argv.includes('--rebase');execSync('git checkout main', { stdio: 'inherit' });console.purple('Pulling the latest code from main...');execSync('git pull origin main', { stdio: 'inherit' });- } else if (shouldRebase) {+ } else {const currentBranch = getCurrentBranch();console.purple(`Rebasing ${currentBranch} onto main...`);execSync('git rebase origin/main', { stdio: 'inherit' });@@ -43,11 +43,14 @@ const shouldRebase = process.argv.includes('--rebase');console.purple('Removing all tags for LibreChat `deployed` images...');const repositories = ['registry.librechat.ai/danny-avila/librechat-dev-api', 'librechat-client'];repositories.forEach((repo) => {- const tags = execSync(`sudo docker images ${repo} -q`, { encoding: 'utf8' })+ const imageRefs = execSync(`sudo docker images ${repo} --format "{{.Repository}}:{{.Tag}}"`, {+ encoding: 'utf8',+ }).split('\n')- .filter(Boolean);- tags.forEach((tag) => {- const removeImageCommand = `sudo docker rmi ${tag}`;+ .filter(Boolean)+ .filter((ref) => !ref.includes('<none>'));+ imageRefs.forEach((imageRef) => {+ const removeImageCommand = `sudo docker rmi ${imageRef}`;console.orange(removeImageCommand);execSync(removeImageCommand, { stdio: 'inherit' });});@@ -58,11 +61,14 @@ const shouldRebase = process.argv.includes('--rebase');console.orange(pullCommand);execSync(pullCommand, { stdio: 'inherit' });- let startCommand = 'sudo docker compose -f ./deploy-compose.yml up -d';+ const startCommand = 'sudo docker compose -f ./deploy-compose.yml up -d';console.green('Your LibreChat app is now up to date! Start the app with the following command:');console.purple(startCommand);console.orange("Note: it's also recommended to clear your browser cookies and localStorage for LibreChat to assure a fully clean installation.",);console.orange("Also: Don't worry, your data is safe :)");-})();+})().catch((err) => {+ console.error('Update script failed:', err.message);+ process.exit(1);+});