thangquang09 commited on
Commit
c23bdf9
·
1 Parent(s): 5dea10f

update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +8 -3
Dockerfile CHANGED
@@ -1,4 +1,4 @@
1
- FROM python:3.12.9
2
 
3
  COPY . .
4
 
@@ -8,6 +8,11 @@ RUN pip install --no-cache-dir --upgrade -r /requirements.txt
8
 
9
  RUN curl -fsSL https://ollama.com/install.sh | sh
10
 
11
- RUN ollama serve
12
 
13
- CMD ["uvicorn", "app:app", "--host", "0.0.0.0", "--port", "7860"]
 
 
 
 
 
 
1
+ FROM python:3.12
2
 
3
  COPY . .
4
 
 
8
 
9
  RUN curl -fsSL https://ollama.com/install.sh | sh
10
 
11
+ RUN ollama pull llama3
12
 
13
+ COPY start.sh /start.sh
14
+ RUN chmod +x /start.sh
15
+
16
+ EXPOSE 7860
17
+
18
+ CMD ["/start.sh"]