Yaya86 commited on
Commit
198b72c
1 Parent(s): 624aff7

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +15 -1
Dockerfile CHANGED
@@ -6,5 +6,19 @@ RUN useradd -m appuser && chown -R appuser:appuser /home/appuser
6
 
7
  USER appuser
8
 
 
 
9
 
10
- EXPOSE 7860
 
 
 
 
 
 
 
 
 
 
 
 
 
6
 
7
  USER appuser
8
 
9
+ # Builder stage
10
+ FROM ubuntu:latest
11
 
12
+ RUN apt update && apt install curl -y
13
+
14
+ RUN curl curl -fsSL https://ollama.com/install.sh | sh
15
+
16
+ # Create the directory and give appropriate permissions
17
+ RUN mkdir -p /.ollama && chmod 777 /.ollama
18
+
19
+ # Command to run the application
20
+ CMD ollama serve & ollama pull mixtral
21
+
22
+
23
+ # Expose the server port
24
+ EXPOSE 7860