alibidaran commited on
Commit
d220608
·
verified ·
1 Parent(s): 7b3cd66

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +5 -5
Dockerfile CHANGED
@@ -22,16 +22,16 @@ RUN apt-get update && apt-get install -y \
22
  RUN python -m venv venv && \
23
  . /app/venv/bin/activate && \
24
  pip install --upgrade pip && \
25
- pip install --no-cache-dir gradio requests ollama
26
 
27
  # Install Ollama
28
- RUN curl https://ollama.ai/install.sh | sh
29
 
30
  # Create the directory and give appropriate permissions
31
- RUN mkdir -p /.ollama && chmod 777 /.ollama
32
 
33
  # Ensure Ollama binary is in the PATH
34
- ENV PATH="/app/venv/bin:/root/.ollama/bin:$PATH"
35
 
36
  # Copy application files and model
37
  COPY . /app
@@ -39,7 +39,7 @@ COPY . /app
39
  # Install Python dependencies
40
 
41
  # Expose ports for Gradio and Ollama
42
- EXPOSE 7860 11434
43
 
44
  # Start both services using a script
45
  COPY start_services.sh /app/start_services.sh
 
22
  RUN python -m venv venv && \
23
  . /app/venv/bin/activate && \
24
  pip install --upgrade pip && \
25
+ pip install --no-cache-dir gradio requests llama-cpp-python
26
 
27
  # Install Ollama
28
+ #RUN curl https://ollama.ai/install.sh | sh
29
 
30
  # Create the directory and give appropriate permissions
31
+ #RUN mkdir -p /.ollama && chmod 777 /.ollama
32
 
33
  # Ensure Ollama binary is in the PATH
34
+ #ENV PATH="/app/venv/bin:/root/.ollama/bin:$PATH"
35
 
36
  # Copy application files and model
37
  COPY . /app
 
39
  # Install Python dependencies
40
 
41
  # Expose ports for Gradio and Ollama
42
+ #EXPOSE 7860 11434
43
 
44
  # Start both services using a script
45
  COPY start_services.sh /app/start_services.sh