ankanpy commited on
Commit
d5eb896
·
verified ·
1 Parent(s): dbafe5e

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +0 -5
Dockerfile CHANGED
@@ -9,7 +9,6 @@ FROM python:3.11-slim
9
  ENV PYTHONUNBUFFERED=1
10
  ENV GRADIO_SERVER_NAME="0.0.0.0"
11
  ENV OLLAMA_HOST="0.0.0.0:11434"
12
- ENV HOME=/root
13
 
14
  # 3. Set Working Directory
15
  WORKDIR /app
@@ -24,10 +23,6 @@ RUN apt-get update && \
24
  # 5. Install Ollama
25
  RUN curl -fsSL https://ollama.com/install.sh | sh
26
 
27
- # Explicitly create the .ollama directory and ensure root owns it
28
- RUN mkdir -p /root/.ollama && \
29
- chown -R root:root /root/.ollama && \
30
- chmod -R 700 /root/.ollama
31
 
32
  # 6. Copy Application Requirements
33
  COPY requirements.txt .
 
9
  ENV PYTHONUNBUFFERED=1
10
  ENV GRADIO_SERVER_NAME="0.0.0.0"
11
  ENV OLLAMA_HOST="0.0.0.0:11434"
 
12
 
13
  # 3. Set Working Directory
14
  WORKDIR /app
 
23
  # 5. Install Ollama
24
  RUN curl -fsSL https://ollama.com/install.sh | sh
25
 
 
 
 
 
26
 
27
  # 6. Copy Application Requirements
28
  COPY requirements.txt .