CodeHima commited on
Commit
a250084
·
1 Parent(s): f4a932a

chore: Add spaCy model download and linking to Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +7 -1
Dockerfile CHANGED
@@ -6,8 +6,14 @@ COPY ./requirements.txt /code/requirements.txt
6
 
7
  RUN pip install --no-cache-dir --upgrade -r /code/requirements.txt
8
 
 
 
 
 
 
 
9
  COPY . /code
10
 
11
  EXPOSE 7860
12
 
13
- CMD ["streamlit", "run", "app.py", "--server.address", "0.0.0.0", "--server.port", "7860"]
 
6
 
7
  RUN pip install --no-cache-dir --upgrade -r /code/requirements.txt
8
 
9
+ # Download the spaCy model
10
+ RUN python -m spacy download en_core_web_sm
11
+
12
+ # Link the spaCy model
13
+ RUN python -m spacy link en_core_web_sm en
14
+
15
  COPY . /code
16
 
17
  EXPOSE 7860
18
 
19
+ CMD ["streamlit", "run", "app.py", "--server.address", "0.0.0.0", "--server.port", "7860"]