BHAVIKBANKER/BERTopic_AGENTIC_AI_GROUP_1
0
1FROM python:3.10-slim2 3# Install system dependencies4RUN apt-get update && apt-get install -y \5 build-essential \6 curl \7 && rm -rf /var/lib/apt/lists/*8 9# Set up a non-root user (important for HF Spaces)10RUN useradd -m -u 1000 user11USER user12ENV PATH="/home/user/.local/bin:${PATH}"13 14WORKDIR /app15 16# 1. Copy requirements first to speed up future builds17COPY --chown=user requirements.txt .18RUN pip install --no-cache-dir --upgrade -r requirements.txt19 20# 2. Copy the rest of the files21COPY --chown=user . .22 23# 3. Port setup24ENV PORT=786025EXPOSE 786026 27# Add the --server.enableXsrfProtection=false flag28CMD ["streamlit", "run", "app.py", "--server.port=7860", "--server.address=0.0.0.0", "--server.enableXsrfProtection=false"]