File size: 788 Bytes
4f6f320
 
 
 
 
 
 
 
 
 
 
 
 
 
6bdc17d
4f6f320
 
 
 
 
 
6bdc17d
933301a
6bdc17d
4f6f320
 
 
 
 
 
8bc589e
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
FROM python:3.11-slim

WORKDIR /app

# System dependencies required for blis / thinc / spacy
RUN apt-get update && apt-get install -y \
    build-essential \
    gcc \
    g++ \
    git \
    libopenblas-dev \
    libomp-dev \
    && rm -rf /var/lib/apt/lists/*

# Upgrade pip
RUN pip install --upgrade pip setuptools wheel

# Install Python deps
COPY requirements.txt . 
RUN pip install --no-cache-dir -r requirements.txt

# Install spaCy English 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 app
COPY . .

# Streamlit default port
EXPOSE 7860

CMD ["streamlit", "run", "app.py", "--server.port=7860", "--server.address=0.0.0.0", "--server.headless=true", "--server.enableCORS=false"]