broadfield-dev commited on
Commit
401c007
·
verified ·
1 Parent(s): a072efc

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +6 -4
Dockerfile CHANGED
@@ -10,9 +10,11 @@ COPY . /app
10
  # Install any needed packages specified in requirements.txt
11
  RUN pip install --no-cache-dir -r requirements.txt
12
 
13
- # Download the model from Hugging Face
14
- RUN ollama serve
15
 
 
 
16
 
17
- # Command to run the application
18
- CMD ["python", "app.py"]
 
10
  # Install any needed packages specified in requirements.txt
11
  RUN pip install --no-cache-dir -r requirements.txt
12
 
13
+ # Install Ollama
14
+ RUN pip install ollama
15
 
16
+ # Make port 8000 available to the world outside this container
17
+ EXPOSE 8000
18
 
19
+ # Run app.py when the container launches
20
+ CMD ["python", "start_ollama_server.py"]