sailajaai commited on
Commit
c58ca24
·
verified ·
1 Parent(s): 839da99

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +5 -2
Dockerfile CHANGED
@@ -1,4 +1,4 @@
1
- FROM python:3.10-slim
2
 
3
  # Set working dir
4
  WORKDIR /code
@@ -8,10 +8,13 @@ RUN apt-get update && apt-get install -y \
8
  build-essential \
9
  && rm -rf /var/lib/apt/lists/*
10
 
11
- # Copy requirements and install
12
  COPY requirements.txt .
13
  RUN pip install --no-cache-dir -r requirements.txt
14
 
 
 
 
15
  # Copy app
16
  COPY . .
17
 
 
1
+ FROM python:3.12-slim
2
 
3
  # Set working dir
4
  WORKDIR /code
 
8
  build-essential \
9
  && rm -rf /var/lib/apt/lists/*
10
 
11
+ # Install Python dependencies
12
  COPY requirements.txt .
13
  RUN pip install --no-cache-dir -r requirements.txt
14
 
15
+ # Pre-download NLTK resources
16
+ RUN python -m nltk.downloader punkt punkt_tab stopwords wordnet
17
+
18
  # Copy app
19
  COPY . .
20