File tree 2 files changed +15
-0
lines changed
2 files changed +15
-0
lines changed Original file line number Diff line number Diff line change @@ -40,6 +40,19 @@ const shouldRebase = process.argv.includes('--rebase');
40
40
console . orange ( downCommand ) ;
41
41
execSync ( downCommand , { stdio : 'inherit' } ) ;
42
42
43
+ console . purple ( 'Removing all tags for LibreChat `deployed` images...' ) ;
44
+ const repositories = [ 'ghcr.io/danny-avila/librechat-dev-api' , 'librechat-client' ] ;
45
+ repositories . forEach ( ( repo ) => {
46
+ const tags = execSync ( `sudo docker images ${ repo } -q` , { encoding : 'utf8' } )
47
+ . split ( '\n' )
48
+ . filter ( Boolean ) ;
49
+ tags . forEach ( ( tag ) => {
50
+ const removeImageCommand = `sudo docker rmi ${ tag } ` ;
51
+ console . orange ( removeImageCommand ) ;
52
+ execSync ( removeImageCommand , { stdio : 'inherit' } ) ;
53
+ } ) ;
54
+ } ) ;
55
+
43
56
console . purple ( 'Pulling latest LibreChat images...' ) ;
44
57
const pullCommand = 'sudo docker-compose -f ./deploy-compose.yml pull api' ;
45
58
console . orange ( pullCommand ) ;
Original file line number Diff line number Diff line change @@ -36,6 +36,8 @@ services:
36
36
depends_on :
37
37
- api
38
38
restart : always
39
+ volumes :
40
+ - ./client/nginx.conf:/etc/nginx/conf.d/default.conf
39
41
mongodb :
40
42
container_name : chat-mongodb
41
43
# ports: # Uncomment this to access mongodb from outside docker, not safe in deployment
You can’t perform that action at this time.
0 commit comments