Spaces:
Sleeping
Sleeping
Update Dockerfile
Browse files- Dockerfile +5 -2
Dockerfile
CHANGED
|
@@ -1,4 +1,4 @@
|
|
| 1 |
-
FROM python:3.
|
| 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 |
-
#
|
| 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 |
|