AI-RESEARCHER-2024 commited on
Commit
9f3397a
1 Parent(s): 96c9475

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +9 -9
Dockerfile CHANGED
@@ -1,14 +1,14 @@
1
  FROM python:3.10
2
 
3
- # # Install necessary packages
4
- # RUN apt-get update && apt-get install -y curl
5
 
6
- # # Set the working directory
7
- # WORKDIR /app
8
 
9
- # # Copy application files and requirements
10
- # COPY . /app
11
- # COPY ./requirements.txt /app/requirements.txt
12
 
13
  # Install Python dependencies
14
  RUN pip install -r requirements.txt
@@ -17,7 +17,7 @@ RUN pip install -r requirements.txt
17
  RUN curl -fsSL https://ollama.com/install.sh | sh
18
 
19
  # Start Ollama server in the background and pull the required model
20
- CMD ["python", "ollama_serve.py", "llama3.2"]
21
 
22
  # Set the command to run the Chainlit application
23
- CMD ["chainlit", "run", "app.py", "--port", "7860"]
 
1
  FROM python:3.10
2
 
3
+ # Install necessary packages
4
+ RUN apt-get update && apt-get install -y curl
5
 
6
+ # Set the working directory
7
+ WORKDIR /app
8
 
9
+ # Copy application files and requirements
10
+ COPY . /app
11
+ COPY ./requirements.txt /app/requirements.txt
12
 
13
  # Install Python dependencies
14
  RUN pip install -r requirements.txt
 
17
  RUN curl -fsSL https://ollama.com/install.sh | sh
18
 
19
  # Start Ollama server in the background and pull the required model
20
+ CMD ["sudo","python", "ollama_serve.py", "llama3.2"]
21
 
22
  # Set the command to run the Chainlit application
23
+ CMD ["sudo","chainlit", "run", "app.py", "--port", "7860"]