# Use NVIDIA CUDA base image for GPU support FROM nvidia/cuda:12.2.0-runtime-ubuntu22.04 # Set working directory WORKDIR /app # Install system dependencies RUN apt-get update && apt-get install -y \ python3 \ python3-pip \ && rm -rf /var/lib/apt/lists/* # Copy requirements file COPY requirements.txt . # Install Python dependencies RUN pip3 install --no-cache-dir -r requirements.txt # Copy application code and knowledge base files COPY tinny_llama.py . COPY nvidia_overview.txt . COPY geforce_now_faq.txt . COPY rtx_50_series_specs.txt . COPY rtx_pro_6000.txt . COPY investor_faq.txt . # Expose Streamlit port EXPOSE 8501 # Set environment variable to ensure Streamlit runs externally ENV STREAMLIT_SERVER_PORT=8501 ENV STREAMLIT_SERVER_ADDRESS=0.0.0.0 # Run the Streamlit application CMD ["streamlit", "run", "tinny_llama.py"]