File size: 597 Bytes
22ffe9e
430c866
9f3397a
 
430c866
9f3397a
 
430c866
9f3397a
 
 
430c866
 
b37b4f4
430c866
 
 
 
284991d
3ef59eb
430c866
 
3ef59eb
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
FROM python:3.10

# Install necessary packages
RUN apt-get update && apt-get install -y curl

# Set the working directory
WORKDIR /app

# Copy application files and requirements
COPY . /app
COPY ./requirements.txt /app/requirements.txt

# Install Python dependencies
RUN pip install -r requirements.txt

# Install Ollama
RUN curl -fsSL https://ollama.com/install.sh | sh

# Start Ollama server in the background and pull the required model
# CMD ["sudo","python", "ollama_serve.py", "llama3.2"]

# Set the command to run the Chainlit application
CMD ["chainlit", "run", "app.py", "--port", "7860"]