mirror of
https://github.com/danny-avila/LibreChat.git
synced 2025-09-21 21:50:49 +02:00
🐋 ci: Dockerfile.multi rewrite, maintain package integrity (#3772)
* chore: touch server * chore: dockerfile.multi first pass * refactor: remove prod-stage build, share dist files instead
This commit is contained in:
parent
d54458b3a6
commit
88d8706757
4 changed files with 30 additions and 33 deletions
|
@ -30,11 +30,10 @@ services:
|
|||
target: /app/librechat.yaml
|
||||
- ./images:/app/client/public/images
|
||||
- ./logs:/app/api/logs
|
||||
- client-dist:/app/client/dist # Share client dist files
|
||||
|
||||
client:
|
||||
build:
|
||||
context: .
|
||||
dockerfile: Dockerfile.multi
|
||||
target: prod-stage
|
||||
image: nginx:1.27.0-alpine
|
||||
container_name: LibreChat-NGINX
|
||||
ports:
|
||||
- 80:80
|
||||
|
@ -44,6 +43,7 @@ services:
|
|||
restart: always
|
||||
volumes:
|
||||
- ./client/nginx.conf:/etc/nginx/conf.d/default.conf
|
||||
- client-dist:/usr/share/nginx/html # Use shared client dist files
|
||||
mongodb:
|
||||
container_name: chat-mongodb
|
||||
# ports: # Uncomment this to access mongodb from outside docker, not safe in deployment
|
||||
|
@ -88,3 +88,4 @@ services:
|
|||
|
||||
volumes:
|
||||
pgdata2:
|
||||
client-dist: # Define a named volume for client dist files
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue