File size: 876 Bytes
02136c1
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
43e09ed
02136c1
 
43e09ed
02136c1
 
 
 
 
43e09ed
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
# Use an official lightweight Python image
FROM python:3.11-slim

# Set working directory
WORKDIR /app

# Copy requirements file if you have one, else you can install directly
# If you have a requirements.txt, uncomment the next two lines:
# COPY requirements.txt .
# RUN pip install --no-cache-dir -r requirements.txt

# Install dependencies (add your actual dependencies here)
RUN pip install --no-cache-dir streamlit genai pymupdf langchain

# Copy the app code into the container
COPY chat.py .

# Expose Streamlit default port
EXPOSE 7860

# Set environment variables for Streamlit to run in the container
ENV STREAMLIT_SERVER_PORT=7860
ENV STREAMLIT_SERVER_HEADLESS=true
ENV STREAMLIT_SERVER_ENABLECORS=false
ENV STREAMLIT_SERVER_ENABLEWEBUI=false

# Command to run the Streamlit app
CMD ["streamlit", "run", "chat.py", "--server.port=7860", "--server.address=0.0.0.0"]