mrbesher commited on
Commit
81b97d0
1 Parent(s): 0bf0602

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +7 -4
Dockerfile CHANGED
@@ -16,20 +16,23 @@ ENV REFRESH_TOKEN_EXPIRY=604800000
16
  # ENV MEILI_HTTP_ADDR=https://librechat-meilisearch.hf.space
17
 
18
  # Create necessary directories
 
19
  RUN mkdir -p /app/client/public/images/temp
20
  RUN mkdir -p /app/api/logs/
21
  RUN mkdir -p /app/data
22
 
23
- # Copy Custom Endpoints Config
24
- COPY librechat.yaml /app/librechat.yaml
25
-
26
  # Give write permission to the directory
 
27
  RUN chmod -R 777 /app/client/public/images
28
  RUN chmod -R 777 /app/api/logs/
29
  RUN chmod -R 777 /app/data
30
 
 
 
 
 
31
  # Install dependencies
32
  RUN cd /app/api && npm install
33
 
34
  # Command to run on container start
35
- CMD ["npm", "run", "backend"]
 
16
  # ENV MEILI_HTTP_ADDR=https://librechat-meilisearch.hf.space
17
 
18
  # Create necessary directories
19
+ RUN mkdir -p /app/uploads/temp
20
  RUN mkdir -p /app/client/public/images/temp
21
  RUN mkdir -p /app/api/logs/
22
  RUN mkdir -p /app/data
23
 
 
 
 
24
  # Give write permission to the directory
25
+ RUN chmod -R 777 /app/uploads/temp
26
  RUN chmod -R 777 /app/client/public/images
27
  RUN chmod -R 777 /app/api/logs/
28
  RUN chmod -R 777 /app/data
29
 
30
+ # Copy Custom Endpoints Config
31
+ RUN curl -o /app/librechat.yaml https://raw.githubusercontent.com/fuegovic/lc-config-yaml/main/librechat.yaml
32
+ # COPY librechat.yaml /app/librechat.yaml # Uncomment this and comment out the previous line to use the local librechat.yaml
33
+
34
  # Install dependencies
35
  RUN cd /app/api && npm install
36
 
37
  # Command to run on container start
38
+ CMD ["npm", "run", "backend"]