redfernstech commited on
Commit
6991b93
·
verified ·
1 Parent(s): f5584d9

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +4 -4
Dockerfile CHANGED
@@ -1,6 +1,9 @@
1
  # Use official Python base image
2
  FROM python:3.12.5
3
 
 
 
 
4
  # Create a new user and switch to it
5
  RUN useradd -m -u 1000 user
6
  USER user
@@ -13,11 +16,8 @@ WORKDIR /app
13
  COPY --chown=user ./requirements.txt requirements.txt
14
  RUN pip install --no-cache-dir --upgrade -r requirements.txt
15
 
16
- # Install Ollama
17
- RUN curl -fsSL https://ollama.com/install.sh | sh
18
-
19
  # Pull the Llama3 model (or any other model you need)
20
- RUN ollama pull llama3:8b
21
 
22
  # Copy application code
23
  COPY --chown=user . /app
 
1
  # Use official Python base image
2
  FROM python:3.12.5
3
 
4
+ # Install Ollama as root
5
+ RUN curl -fsSL https://ollama.com/install.sh | sh
6
+
7
  # Create a new user and switch to it
8
  RUN useradd -m -u 1000 user
9
  USER user
 
16
  COPY --chown=user ./requirements.txt requirements.txt
17
  RUN pip install --no-cache-dir --upgrade -r requirements.txt
18
 
 
 
 
19
  # Pull the Llama3 model (or any other model you need)
20
+ RUN ollama pull llama3
21
 
22
  # Copy application code
23
  COPY --chown=user . /app