Boning c
commited on
Update Dockerfile
Browse files- Dockerfile +22 -4
Dockerfile
CHANGED
|
@@ -1,5 +1,23 @@
|
|
| 1 |
-
|
|
|
|
| 2 |
|
| 3 |
-
|
| 4 |
-
RUN
|
| 5 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 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"]
|