Boning c commited on
Commit
959dc8a
·
verified ·
1 Parent(s): df169fd

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +22 -4
Dockerfile CHANGED
@@ -1,5 +1,23 @@
1
- RUN git clone https://github.com/danny-avila/LibreChat.git /app/librechat
 
2
 
3
- WORKDIR /app/librechat
4
- RUN cd server && npm install
5
- RUN cd client && npm install
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # Base image
2
+ FROM node:18
3
 
4
+ # Install supervisor
5
+ RUN apt-get update && apt-get install -y supervisor
6
+
7
+ # Set working directory
8
+ WORKDIR /app
9
+
10
+ # Clone LibreChat
11
+ RUN git clone https://github.com/danny-avila/LibreChat.git librechat
12
+
13
+ # Install server dependencies
14
+ RUN cd librechat/server && npm install
15
+
16
+ # Install client dependencies
17
+ RUN cd librechat/client && npm install
18
+
19
+ # Copy supervisor config
20
+ COPY supervisord.conf /etc/supervisord.conf
21
+
22
+ # Start both frontend and backend
23
+ CMD ["/usr/bin/supervisord", "-c", "/etc/supervisord.conf"]