ar08 commited on
Commit
d2af891
·
verified ·
1 Parent(s): e84c1ea

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +16 -1
Dockerfile CHANGED
@@ -1,9 +1,24 @@
1
  FROM lobehub/lobe-chat
2
 
3
  WORKDIR /app
 
 
 
 
 
4
  RUN curl -fsSL https://ollama.com/install.sh | sh
 
 
5
  COPY . .
6
- ENV Environment="OLLAMA_ORIGINS=*"
 
 
 
 
7
  EXPOSE 7860
 
 
8
  ENV PORT=7860
 
 
9
  CMD ["node", "server.js", "--port", "7860"]
 
1
  FROM lobehub/lobe-chat
2
 
3
  WORKDIR /app
4
+
5
+ # Install dependencies
6
+ RUN apt-get update && apt-get install -y curl
7
+
8
+ # Install Ollama
9
  RUN curl -fsSL https://ollama.com/install.sh | sh
10
+
11
+ # Copy application code
12
  COPY . .
13
+
14
+ # Set environment variable for cross-origin access
15
+ ENV OLLAMA_ORIGINS="*"
16
+
17
+ # Expose the port
18
  EXPOSE 7860
19
+
20
+ # Set the port environment variable
21
  ENV PORT=7860
22
+
23
+ # Command to run the application
24
  CMD ["node", "server.js", "--port", "7860"]