FROM python:3.11 WORKDIR /app # Install system dependencies COPY packages.txt . RUN apt-get update && xargs -a packages.txt apt-get install -y # Install Python dependencies COPY requirements.txt . RUN pip install --no-cache-dir -r requirements.txt # Download spaCy model RUN pip install https://github.com/explosion/spacy-models/releases/download/en_core_web_sm-3.7.1/en_core_web_sm-3.7.1-py3-none-any.whl # Copy application files COPY . . # Expose Streamlit port EXPOSE 7860 # Set environment variables ENV STREAMLIT_SERVER_PORT=7860 ENV STREAMLIT_SERVER_ADDRESS=0.0.0.0 # Run Streamlit CMD ["streamlit", "run", "app.py", "--server.port=7860", "--server.address=0.0.0.0"]