| FROM python:3.11-slim |
|
|
| WORKDIR /app |
|
|
| |
| RUN apt-get update && apt-get install -y \ |
| build-essential \ |
| gcc \ |
| g++ \ |
| git \ |
| libopenblas-dev \ |
| libomp-dev \ |
| && rm -rf /var/lib/apt/lists/* |
|
|
| |
| RUN pip install --upgrade pip setuptools wheel |
|
|
| |
| COPY requirements.txt . |
| RUN pip install --no-cache-dir -r requirements.txt |
|
|
| |
| 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 . . |
|
|
| |
| EXPOSE 7860 |
|
|
| CMD ["streamlit", "run", "app.py", "--server.port=7860", "--server.address=0.0.0.0", "--server.headless=true", "--server.enableCORS=false"] |