🐋 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:
Danny Avila 2024-08-24 15:00:51 -04:00 committed by GitHub
parent d54458b3a6
commit 88d8706757
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
4 changed files with 30 additions and 33 deletions

View file

@ -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