ka1kuk commited on
Commit
814c46e
1 Parent(s): 5c9d130

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +16 -16
Dockerfile CHANGED
@@ -1,23 +1,23 @@
1
- # Use an official base image
2
- FROM ubuntu:latest
3
 
4
- # Install curl, Python, and any other necessary dependencies
5
- RUN apt-get update && \
6
- apt-get install -y curl python3 python3-pip && \
7
- rm -rf /var/lib/apt/lists/*
 
 
 
 
8
 
9
  # Install ollama
10
  RUN curl -fsSL https://ollama.com/install.sh | sh
11
 
12
- # Copy the Python script into the container
13
- COPY your_script.py /usr/local/bin/your_script.py
14
-
15
- # Make sure the Python script is executable
16
- RUN chmod +x /usr/local/bin/your_script.py
17
 
18
- # Copy a startup script into the container
19
- COPY start-ollama.sh /usr/local/bin/start-ollama.sh
20
- RUN chmod +x /usr/local/bin/start-ollama.sh
21
 
22
- # Use the startup script to run commands
23
- CMD ["/usr/local/bin/start-ollama.sh"]
 
1
+ # Use an official Python base image
2
+ FROM python:3.8
3
 
4
+ # Set the working directory in the container
5
+ WORKDIR /app
6
+
7
+ # Copy the requirements file into the container
8
+ COPY requirements.txt /app/
9
+
10
+ # Install dependencies
11
+ RUN pip install -r requirements.txt
12
 
13
  # Install ollama
14
  RUN curl -fsSL https://ollama.com/install.sh | sh
15
 
16
+ # Copy the Streamlit app script into the container
17
+ COPY main.py /app/
 
 
 
18
 
19
+ # Expose the port Streamlit runs on
20
+ EXPOSE 8501
 
21
 
22
+ # Command to run the Streamlit app
23
+ CMD ["streamlit", "run", "main.py"]