Spaces:
Runtime error
Runtime error
Update Dockerfile
Browse files- Dockerfile +2 -11
Dockerfile
CHANGED
@@ -10,17 +10,8 @@ COPY . /app
|
|
10 |
# Install any needed packages specified in requirements.txt
|
11 |
RUN pip install --no-cache-dir -r requirements.txt
|
12 |
|
13 |
-
#
|
14 |
-
RUN
|
15 |
-
|
16 |
-
# Download NLTK data
|
17 |
-
RUN python -m nltk.downloader stopwords punkt
|
18 |
-
|
19 |
-
# Make port 80 available to the world outside this container
|
20 |
-
EXPOSE 80
|
21 |
-
|
22 |
-
# Define environment variable
|
23 |
-
ENV NAME World
|
24 |
|
25 |
# Start the FastAPI app on port 7860, the default port expected by Spaces
|
26 |
CMD ["uvicorn", "main:app", "--host", "0.0.0.0", "--port", "7860"]
|
|
|
10 |
# Install any needed packages specified in requirements.txt
|
11 |
RUN pip install --no-cache-dir -r requirements.txt
|
12 |
|
13 |
+
# Run the script to download NLTK data
|
14 |
+
RUN python /app/download_nltk_data.py
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
15 |
|
16 |
# Start the FastAPI app on port 7860, the default port expected by Spaces
|
17 |
CMD ["uvicorn", "main:app", "--host", "0.0.0.0", "--port", "7860"]
|