-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDockerfile
More file actions
33 lines (23 loc) · 831 Bytes
/
Dockerfile
File metadata and controls
33 lines (23 loc) · 831 Bytes
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
28
29
30
31
32
33
# Use an official Python runtime as a parent image
FROM python:3.13.0
# Set the working directory in the container
WORKDIR /app
# Set environment variables
ENV DEFAULT_REPO_URL="https://github.com/ignasf5/chatbot"
# Default to INFO, but you can change it when running the container
ENV LOG_LEVEL=INFO
# Set environment variables for dynamic values
ENV PAGE_TITLE="Chatbot"
ENV TITLE="GitHub README Chatbot"
# Set the number of characters to return.
ENV SUMMARY_MAX_LENGTH=500
# Install dependencies
COPY requirements.txt /app/
# Install Python dependencies from requirements.txt
RUN pip install --no-cache-dir -r requirements.txt
# Copy the current directory contents into the container at /app
COPY . /app/
# Expose port 8501 for the Streamlit app
EXPOSE 8501
# Command to run the app
CMD ["streamlit", "run", "app.py"]