Awesome-Developer commited on
Commit
131ce87
·
verified ·
1 Parent(s): e53a242

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +4 -3
Dockerfile CHANGED
@@ -1,12 +1,13 @@
1
  FROM python:3.9
2
 
3
- # Install Ollama and Tmate for SSH access
4
  RUN apt-get update && apt-get install -y curl tmate
5
  RUN curl -fsSL https://ollama.com/install.sh | sh
6
 
 
7
  WORKDIR /app
8
  COPY . .
9
- RUN pip install -r requirements.txt
10
 
11
- # Start Ollama and Tmate
12
  CMD ollama serve & tmate -F
 
1
  FROM python:3.9
2
 
3
+ # Install Ollama and Tmate for connection
4
  RUN apt-get update && apt-get install -y curl tmate
5
  RUN curl -fsSL https://ollama.com/install.sh | sh
6
 
7
+ # Set up a working directory
8
  WORKDIR /app
9
  COPY . .
10
+ RUN pip install --no-cache-dir -r requirements.txt
11
 
12
+ # Start Ollama in the background and Tmate in the foreground
13
  CMD ollama serve & tmate -F