Sirorororo commited on
Commit
fa98d6d
·
verified ·
1 Parent(s): 0af61fe

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +3 -10
Dockerfile CHANGED
@@ -1,14 +1,7 @@
1
- # Start with the official Ollama Docker image
2
  FROM ollama/ollama
3
 
4
- # Install nginx to act as a reverse proxy
5
- RUN apt-get update && apt-get install -y nginx
6
-
7
- # Copy a custom nginx configuration file
8
- COPY nginx.conf /etc/nginx/nginx.conf
9
-
10
- # Expose port 7860 (required by Hugging Face Spaces)
11
  EXPOSE 7860
12
 
13
- # Start both nginx and Ollama in the foreground
14
- CMD service nginx start && ollama serve
 
 
1
  FROM ollama/ollama
2
 
3
+ # Expose the required port (adjust if needed)
 
 
 
 
 
 
4
  EXPOSE 7860
5
 
6
+ # Start the Ollama service
7
+ CMD ollama serve