Spaces:
Building
Building
Update Dockerfile
Browse files- Dockerfile +4 -2
Dockerfile
CHANGED
@@ -10,8 +10,10 @@ COPY requirements.txt /
|
|
10 |
RUN pip install --no-cache-dir -r requirements.txt
|
11 |
|
12 |
# Will execute nltk.download('wordnet')
|
13 |
-
COPY post_install.py .
|
14 |
-
RUN python post_install.py
|
|
|
|
|
15 |
|
16 |
# Copy the code files
|
17 |
COPY src /
|
|
|
10 |
RUN pip install --no-cache-dir -r requirements.txt
|
11 |
|
12 |
# Will execute nltk.download('wordnet')
|
13 |
+
#COPY post_install.py .
|
14 |
+
#RUN python post_install.py
|
15 |
+
|
16 |
+
RUN [ "python", "-c", "import nltk; nltk.download('wordnet', download_dir='/usr/local/nltk_data')" ]
|
17 |
|
18 |
# Copy the code files
|
19 |
COPY src /
|