Ayo42 commited on
Commit
fe3cd39
·
verified ·
1 Parent(s): 154e319

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +3 -2
Dockerfile CHANGED
@@ -1,4 +1,4 @@
1
- FROM python:3.9-slim
2
 
3
  WORKDIR /app
4
 
@@ -7,12 +7,13 @@ RUN apt-get update && apt-get install -y \
7
  curl \
8
  software-properties-common \
9
  git \
 
10
  && rm -rf /var/lib/apt/lists/*
11
 
12
  COPY requirements.txt ./
13
  COPY src/ ./src/
14
 
15
- RUN pip3 install -r requirements.txt
16
 
17
  EXPOSE 8501
18
 
 
1
+ FROM python:3.11-slim
2
 
3
  WORKDIR /app
4
 
 
7
  curl \
8
  software-properties-common \
9
  git \
10
+ python -m spacy download en_core_web_md\
11
  && rm -rf /var/lib/apt/lists/*
12
 
13
  COPY requirements.txt ./
14
  COPY src/ ./src/
15
 
16
+ RUN pip install -r requirements.txt
17
 
18
  EXPOSE 8501
19