subhrajit-mohanty commited on
Commit
58d375a
·
verified ·
1 Parent(s): 9e3f9c1

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +5 -22
Dockerfile CHANGED
@@ -1,27 +1,10 @@
1
- FROM ubuntu:20.04
2
 
3
- ENV DEBIAN_FRONTEND=noninteractive
4
 
5
- # Install prerequisites
6
- RUN apt-get update && apt-get install -y \
7
- curl \
8
- sudo \
9
- unzip \
10
- && rm -rf /var/lib/apt/lists/*
11
-
12
- # Download and install Ollama manually
13
- RUN curl -LO https://ollama.ai/binaries/ollama-linux-amd64 \
14
- && chmod +x ollama-linux-amd64 \
15
- && mv ollama-linux-amd64 /usr/local/bin/ollama
16
-
17
- # Verify installation
18
- RUN echo $PATH && which ollama || (echo "Ollama not found!" && exit 1)
19
-
20
- # Set the working directory
21
- WORKDIR /app
22
 
23
  # Expose port 8050
24
- EXPOSE $SPACE_HOST
25
 
26
- # Start the Ollama server
27
- CMD ["/usr/local/bin/ollama", "serve", "--port", $SPACE_HOST]
 
1
+ FROM ollama/ollama:latest
2
 
3
+ RUN ollama serve
4
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
5
 
6
  # Expose port 8050
7
+ # EXPOSE $SPACE_HOST
8
 
9
+ # # Start the Ollama server
10
+ # CMD ["/usr/local/bin/ollama", "serve", "--port", $SPACE_HOST]