Spaces:
Runtime error
Runtime error
Vighnesh-Tiwarekar
commited on
Commit
·
fb2568b
1
Parent(s):
33a11fb
Fix version 5
Browse files- Dockerfile +6 -5
Dockerfile
CHANGED
|
@@ -7,14 +7,15 @@ WORKDIR /code
|
|
| 7 |
# Copy the requirements file into the container
|
| 8 |
COPY ./requirements.txt /code/requirements.txt
|
| 9 |
|
| 10 |
-
# Install the dependencies
|
| 11 |
RUN pip install --no-cache-dir --upgrade -r /code/requirements.txt
|
| 12 |
|
| 13 |
-
# Download the required NLTK data
|
| 14 |
-
RUN python -m nltk.downloader wordnet omw-1.4
|
| 15 |
|
| 16 |
-
|
|
|
|
| 17 |
COPY . /code/
|
| 18 |
|
| 19 |
-
# Command to run the application
|
| 20 |
CMD ["python", "app.py"]
|
|
|
|
| 7 |
# Copy the requirements file into the container
|
| 8 |
COPY ./requirements.txt /code/requirements.txt
|
| 9 |
|
| 10 |
+
# Install the dependencies
|
| 11 |
RUN pip install --no-cache-dir --upgrade -r /code/requirements.txt
|
| 12 |
|
| 13 |
+
# Download the required NLTK data to match code path
|
| 14 |
+
RUN python -m nltk.downloader -d /usr/local/nltk_data wordnet omw-1.4
|
| 15 |
|
| 16 |
+
|
| 17 |
+
# Copy the rest of the application code
|
| 18 |
COPY . /code/
|
| 19 |
|
| 20 |
+
# Command to run the application
|
| 21 |
CMD ["python", "app.py"]
|