Skip to content

Commit 825bae7

Browse files
authored
Create Dockerfile
1 parent 090f8ac commit 825bae7

File tree

1 file changed

+19
-0
lines changed

1 file changed

+19
-0
lines changed

ai-chatbot/Dockerfile

+19
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
FROM python:3.10
2+
3+
# Set the working directory
4+
WORKDIR /app
5+
6+
# Copy only requirements first to leverage Docker caching
7+
COPY requirements.txt .
8+
9+
# Install dependencies
10+
RUN pip install --no-cache-dir -r requirements.txt
11+
12+
# Copy the rest of the application code
13+
COPY . .
14+
15+
# Expose Streamlit's default port
16+
EXPOSE 8501
17+
18+
# Command to run the Streamlit app
19+
CMD ["streamlit", "run", "chatbot.py", "--server.port=8501", "--server.address=0.0.0.0"]

0 commit comments

Comments
 (0)