File size: 435 Bytes
0c2f424
 
 
 
 
09c22de
 
 
 
 
0c2f424
09c22de
 
 
 
0c2f424
09c22de
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
FROM python:3.9-slim

WORKDIR /app
COPY . /app

# 1) Install OS-level build tools (gcc, make, etc.)
RUN apt-get update && \
    apt-get install -y --no-install-recommends \
      build-essential gcc && \
    rm -rf /var/lib/apt/lists/*

# 2) Install Python deps and spaCy model
RUN pip install --upgrade pip && \
    pip install -r requirements.txt && \
    python -m spacy download en_core_web_sm

EXPOSE 7860
CMD ["python","app.py"]