Spaces:

npc0 commited on
Commit
2a0312c
1 Parent(s): b214c4d

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +3 -1
Dockerfile CHANGED
@@ -2,6 +2,8 @@ FROM swipl
2
 
3
  RUN apt-get update
4
  RUN apt-get install -y gcc python3-all python3-dev python3-venv
 
 
5
 
6
  WORKDIR /app
7
  COPY . /app
@@ -15,4 +17,4 @@ RUN touch tmp.pl && chmod 666 tmp.pl
15
 
16
  EXPOSE 7860
17
  ENV GRADIO_SERVER_NAME="0.0.0.0"
18
- CMD ["python", "app.py"]
 
2
 
3
  RUN apt-get update
4
  RUN apt-get install -y gcc python3-all python3-dev python3-venv
5
+ RUN curl -fsSL https://ollama.com/install.sh | sh
6
+ RUN ollama pull mxbai-embed-large
7
 
8
  WORKDIR /app
9
  COPY . /app
 
17
 
18
  EXPOSE 7860
19
  ENV GRADIO_SERVER_NAME="0.0.0.0"
20
+ CMD ["ollama", "serve" ,"&", "python", "app.py"]