PyxiLabs commited on
Commit
33d74f8
·
verified ·
1 Parent(s): 2f2ba38

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +9 -8
Dockerfile CHANGED
@@ -2,22 +2,23 @@ FROM python:3.10-slim-buster
2
 
3
  WORKDIR /app
4
 
5
- COPY ollama.sh /app
 
6
 
 
7
  RUN python -m venv venv && \
8
- . /app/venv/bin/activate
9
-
10
- RUN chmod +x ollama.sh
11
 
12
  # Install Ollama
13
  RUN curl https://ollama.ai/install.sh | sh
14
 
15
- # Create the directory and give appropriate permissions
16
  RUN mkdir -p /.ollama && chmod 777 /.ollama
17
 
18
- # Ensure Ollama binary is in the PATH
19
- ENV PATH="/app/venv/bin:/root/.ollama/bin:$PATH"
20
 
21
  EXPOSE 11434
22
 
23
- ENTRYPOINT ["/ollama.sh"]
 
 
2
 
3
  WORKDIR /app
4
 
5
+ # Copy the script into the container's /app directory
6
+ COPY ollama.sh /app/ollama.sh
7
 
8
+ # Create virtual environment and set permissions
9
  RUN python -m venv venv && \
10
+ chmod +x /app/ollama.sh
 
 
11
 
12
  # Install Ollama
13
  RUN curl https://ollama.ai/install.sh | sh
14
 
15
+ # Prepare Ollama directory
16
  RUN mkdir -p /.ollama && chmod 777 /.ollama
17
 
18
+ # Ensure Ollama binary is accessible
19
+ ENV PATH="/root/.ollama/bin:$PATH"
20
 
21
  EXPOSE 11434
22
 
23
+ # Use the correct path to the script
24
+ ENTRYPOINT ["/app/ollama.sh"]