File size: 558 Bytes
814c46e
 
0e876f8
814c46e
 
 
60d02b4
 
366614f
814c46e
 
 
 
 
0e876f8
 
 
 
814c46e
 
0e876f8
814c46e
 
0e876f8
814c46e
1470d33
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
# Use an official Python base image
FROM python:3.8

# Set the working directory in the container
WORKDIR /app

ENV HOME=/home/user \
    PATH=/home/user/.local/bin:$PATH

# Copy the requirements file into the container
COPY requirements.txt /app/

# Install dependencies
RUN pip install -r requirements.txt

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

# Copy the Streamlit app script into the container
COPY main.py /app/

# Expose the port Streamlit runs on
EXPOSE 8501

# Command to run the Streamlit app
CMD ["python", "main.py"]