eggacheb commited on
Commit
f866b5d
·
verified ·
1 Parent(s): 088c337

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +19 -3
Dockerfile CHANGED
@@ -1,7 +1,6 @@
1
  FROM ghcr.io/danny-avila/librechat-dev:latest
2
- EXPOSE 3080
3
 
4
- # Set environment variables
5
  ENV HOST=0.0.0.0
6
  ENV PORT=3080
7
  ENV SESSION_EXPIRY=900000
@@ -34,5 +33,22 @@ RUN curl -o /app/librechat.yaml https://raw.githubusercontent.com/fuegovic/lc-co
34
  # Install dependencies
35
  RUN cd /app/api && npm install
36
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
37
  # Command to run on container start
38
- CMD ["npm", "run", "backend"]
 
1
  FROM ghcr.io/danny-avila/librechat-dev:latest
 
2
 
3
+ # Set environment variables for librechat
4
  ENV HOST=0.0.0.0
5
  ENV PORT=3080
6
  ENV SESSION_EXPIRY=900000
 
33
  # Install dependencies
34
  RUN cd /app/api && npm install
35
 
36
+ # Add rag_api
37
+ RUN curl -Lo /app/rag_api.tar.gz https://github.com/danny-avila/librechat-rag-api-dev/archive/refs/heads/main.tar.gz \
38
+ && tar -xzvf /app/rag_api.tar.gz -C /app/ \
39
+ && rm /app/rag_api.tar.gz \
40
+ && mv /app/librechat-rag-api-dev-main /app/rag_api
41
+
42
+ # Install dependencies for rag_api
43
+ RUN cd /app/rag_api && npm install
44
+
45
+ # Create a script to start both services
46
+ RUN echo '#!/bin/bash\n\
47
+ cd /app/api && npm run backend &\n\
48
+ cd /app/rag_api && npm start &\n\
49
+ wait' > /app/start-services.sh
50
+
51
+ RUN chmod +x /app/start-services.sh
52
+
53
  # Command to run on container start
54
+ CMD ["/bin/bash", "/app/start-services.sh"]