Fuegovic commited on
Commit
18769af
1 Parent(s): 9991a6c

Create Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +27 -0
Dockerfile ADDED
@@ -0,0 +1,27 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ FROM ghcr.io/danny-avila/librechat-dev:latest
2
+
3
+ # Set environment variables
4
+ ENV HOST=0.0.0.0
5
+ ENV PORT=3080
6
+ ENV SESSION_EXPIRY=900000
7
+ ENV REFRESH_TOKEN_EXPIRY=604800000
8
+ ENV OPENAI_MODELS=gpt-3.5-turbo-1106,gpt-4-1106-preview,gpt-4-vision-preview,gpt-3.5-turbo,gpt-3.5-turbo-16k,gpt-3.5-turbo-0301,text-davinci-003,gpt-4,gpt-4-0314,gpt-4-0613
9
+ ENV PLUGIN_MODELS=gpt-3.5-turbo-1106,gpt-4-1106-preview,gpt-4-vision-preview,gpt-3.5-turbo,gpt-3.5-turbo-16k,gpt-3.5-turbo-0301,text-davinci-003,gpt-4,gpt-4-0314,gpt-4-0613
10
+
11
+ # Uncomment the following ENV to enable search
12
+ # Feel free to clone our meilisearch space and update the URL with your own
13
+
14
+ # ENV SEARCH=true
15
+ # ENV MEILI_NO_ANALYTICS=true
16
+ # ENV MEILI_HOST=https://librechat-meilisearch.hf.space
17
+ # ENV MEILI_HTTP_ADDR=https://librechat-meilisearch.hf.space
18
+
19
+ # Create necessary directory ans set permission, used for images temporary storage
20
+ RUN mkdir -p /app/client/public/images/temp
21
+ RUN chmod -R 777 /app/client/public/images
22
+
23
+ # Install dependencies
24
+ RUN cd /app/api && npm install
25
+
26
+ # Command to run on container start
27
+ CMD ["npm", "run", "backend"]