FROM python:3.10-slim WORKDIR /code # Install system deps RUN apt-get update \ && apt-get install -y --no-install-recommends build-essential gcc \ && rm -rf /var/lib/apt/lists/* # Copy requirements and install COPY requirements.txt . # First install NumPy alone to get the right ABI RUN pip install --no-cache-dir numpy==1.24.4 # Now install everything else RUN pip install --upgrade pip setuptools wheel \ && pip install --no-cache-dir -r requirements.txt # Finally download the spaCy model RUN python -m spacy download en_core_web_sm COPY . . CMD ["streamlit", "run", "app.py", "--server.address=0.0.0.0", "--server.port=7860"]