PyxiLabs commited on
Commit
f70938a
·
verified ·
1 Parent(s): d4c7f95

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +6 -10
Dockerfile CHANGED
@@ -2,21 +2,17 @@ FROM python:3.10-slim-buster
2
 
3
  WORKDIR /app
4
 
5
- # Copy script with proper permissions
6
- COPY ollama.sh /app/ollama.sh
7
- RUN chmod +x /app/ollama.sh
8
 
9
- # Install system dependencies and Ollama
10
- RUN apt-get update && apt-get install -y curl && \
11
- curl https://ollama.ai/install.sh | sh
 
12
 
13
- # Create directory with correct permissions
14
  RUN mkdir -p /.ollama && chmod 777 /.ollama
15
 
16
- # Ensure Ollama is in PATH (standard installation location)
17
  ENV PATH="/usr/local/bin:$PATH"
18
 
19
- EXPOSE 11434
20
 
21
- # Use absolute path to script
22
  ENTRYPOINT ["/app/ollama.sh"]
 
2
 
3
  WORKDIR /app
4
 
5
+ COPY requirements.txt ollama.sh ollama.py ./
 
 
6
 
7
+ RUN apt-get update && apt-get install -y curl netcat && \
8
+ curl https://ollama.ai/install.sh | sh && \
9
+ pip install --no-cache-dir -r requirements.txt && \
10
+ chmod +x ollama.sh
11
 
 
12
  RUN mkdir -p /.ollama && chmod 777 /.ollama
13
 
 
14
  ENV PATH="/usr/local/bin:$PATH"
15
 
16
+ EXPOSE 7860 11434
17
 
 
18
  ENTRYPOINT ["/app/ollama.sh"]