Update Dockerfile
Browse files- Dockerfile +16 -16
Dockerfile
CHANGED
@@ -1,23 +1,23 @@
|
|
1 |
-
# Use an official base image
|
2 |
-
FROM
|
3 |
|
4 |
-
#
|
5 |
-
|
6 |
-
|
7 |
-
|
|
|
|
|
|
|
|
|
8 |
|
9 |
# Install ollama
|
10 |
RUN curl -fsSL https://ollama.com/install.sh | sh
|
11 |
|
12 |
-
# Copy the
|
13 |
-
COPY
|
14 |
-
|
15 |
-
# Make sure the Python script is executable
|
16 |
-
RUN chmod +x /usr/local/bin/your_script.py
|
17 |
|
18 |
-
#
|
19 |
-
|
20 |
-
RUN chmod +x /usr/local/bin/start-ollama.sh
|
21 |
|
22 |
-
#
|
23 |
-
CMD ["
|
|
|
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"]
|