mrbesher commited on
Commit
1bb6484
1 Parent(s): 9b1b01f

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +8 -12
Dockerfile CHANGED
@@ -1,19 +1,14 @@
 
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
@@ -27,9 +22,10 @@ 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
 
1
+ # Pull the base image
2
  FROM ghcr.io/danny-avila/librechat-dev:latest
 
3
 
4
  # Set environment variables
5
  ENV HOST=0.0.0.0
6
+ ENV PORT=7860
7
  ENV SESSION_EXPIRY=900000
8
  ENV REFRESH_TOKEN_EXPIRY=604800000
9
+ ENV SEARCH=true
10
+ ENV MEILI_NO_ANALYTICS=true
11
+ ENV MEILI_HOST=https://librechat-meilisearch.hf.space
 
 
 
 
 
12
 
13
  # Create necessary directories
14
  RUN mkdir -p /app/uploads/temp
 
22
  RUN chmod -R 777 /app/api/logs/
23
  RUN chmod -R 777 /app/data
24
 
25
+
26
  # Copy Custom Endpoints Config
27
+ # RUN curl -o /app/librechat.yaml https://raw.githubusercontent.com/fuegovic/lc-config-yaml/main/librechat-hf.yaml
28
+ COPY librechat.yaml /app/librechat.yaml # Uncomment this and comment out the previous line to use the local librechat.yaml
29
 
30
  # Install dependencies
31
  RUN cd /app/api && npm install