Spaces:
Sleeping
Sleeping
Praneeth Yerrapragada commited on
Commit ·
4df7c12
1
Parent(s): 1051b46
build: Download the 'stopwords' resource before running the app
Browse files- Dockerfile +3 -0
Dockerfile
CHANGED
|
@@ -15,5 +15,8 @@ RUN --mount=type=cache,mode=0755,target=/root/.cache/pip pip install -r requirem
|
|
| 15 |
# Make port 8000 available to the world outside this container
|
| 16 |
EXPOSE 8000
|
| 17 |
|
|
|
|
|
|
|
|
|
|
| 18 |
# Run app.py when the container launches
|
| 19 |
CMD ["python", "main.py"]
|
|
|
|
| 15 |
# Make port 8000 available to the world outside this container
|
| 16 |
EXPOSE 8000
|
| 17 |
|
| 18 |
+
# Download the 'stopwords' resource before running the app
|
| 19 |
+
RUN python -c "import nltk; nltk.download('stopwords')"
|
| 20 |
+
|
| 21 |
# Run app.py when the container launches
|
| 22 |
CMD ["python", "main.py"]
|