mirror of
https://github.com/danny-avila/LibreChat.git
synced 2025-09-21 21:50:49 +02:00
🛠️ chore: Refactor Update Script to Utilize Docker Compose v2 (#1752)
This commit is contained in:
parent
7f2264fd5c
commit
d06e5d2e02
1 changed files with 3 additions and 3 deletions
|
@ -79,7 +79,7 @@ async function validateDockerRunning() {
|
|||
|
||||
if (docker) {
|
||||
console.purple('Removing previously made Docker container...');
|
||||
const downCommand = `${sudo}docker-compose ${
|
||||
const downCommand = `${sudo}docker compose ${
|
||||
singleCompose ? '-f ./docs/dev/single-compose.yml ' : ''
|
||||
}down`;
|
||||
console.orange(downCommand);
|
||||
|
@ -95,7 +95,7 @@ async function validateDockerRunning() {
|
|||
console.purple('Removing all unused dangling Docker images...');
|
||||
execSync(`${sudo}docker image prune -f`, { stdio: 'inherit' });
|
||||
console.purple('Building new LibreChat image...');
|
||||
const buildCommand = `${sudo}docker-compose ${
|
||||
const buildCommand = `${sudo}docker compose ${
|
||||
singleCompose ? '-f ./docs/dev/single-compose.yml ' : ''
|
||||
}build --no-cache`;
|
||||
console.orange(buildCommand);
|
||||
|
@ -119,7 +119,7 @@ async function validateDockerRunning() {
|
|||
|
||||
let startCommand = 'npm run backend';
|
||||
if (docker) {
|
||||
startCommand = `${sudo}docker-compose ${
|
||||
startCommand = `${sudo}docker compose ${
|
||||
singleCompose ? '-f ./docs/dev/single-compose.yml ' : ''
|
||||
}up`;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue