# 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"]