File size: 638 Bytes
1728ec4
 
 
 
 
 
 
 
aee1976
5e0528d
0ee36dc
 
f6b820a
0ee36dc
 
f6b820a
0ee36dc
 
f6b820a
aee1976
1728ec4
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
FROM python:3.10

WORKDIR /code

COPY ./requirements.txt /code/requirements.txt

RUN pip install --no-cache-dir --upgrade -r /code/requirements.txt

# Install spaCy model
RUN python -m spacy download en_core_web_sm

# Copy the local en_core_web_sm-3.0.0.tar.gz file into the container
# COPY ./en_core_web_sm-3.0.0.tar.gz /models/en_core_web_sm-3.0.0.tar.gz

# Install the spaCy model from the .tar.gz file
# RUN pip install /models/en_core_web_sm-3.0.0.tar.gz

# Clean up the .tar.gz file after installation
# RUN rm /models/en_core_web_sm-3.0.0.tar.gz

COPY . . 

CMD ["waitress-serve", "--host", "0.0.0.0", "--port", "7860", "app:app"]