Spaces:
reon314
/
Runtime error

reon314 commited on
Commit
5926e5e
1 Parent(s): 416df3a

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +30 -5
Dockerfile CHANGED
@@ -1,13 +1,38 @@
1
- # Pull the base image
2
- FROM ghcr.io/danny-avila/librechat:latest
3
 
4
  # Set environment variables
5
  ENV HOST=0.0.0.0
6
- ENV PORT=7860
7
- ENV SESSION_EXPIRY=604800000
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
8
 
9
  # Install dependencies
10
  RUN cd /app/api && npm install
11
 
12
  # Command to run on container start
13
- CMD ["npm", "run", "backend"]
 
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
8
+ ENV REFRESH_TOKEN_EXPIRY=604800000
9
+
10
+ # Uncomment the following ENV to enable search
11
+ # Feel free to clone our meilisearch space and update the URL with your own
12
+
13
+ # ENV SEARCH=true
14
+ # ENV MEILI_NO_ANALYTICS=true
15
+ # ENV MEILI_HOST=https://librechat-meilisearch.hf.space
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-rw.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"]