Update Dockerfile
Browse files- Dockerfile +1 -7
Dockerfile
CHANGED
@@ -1,9 +1,3 @@
|
|
1 |
FROM huggingface/autotrain-advanced:latest
|
2 |
|
3 |
-
|
4 |
-
&& pip install nltk \
|
5 |
-
&& python -c "import nltk; nltk.download('punkt', download_dir='/app/nltk_data')"
|
6 |
-
|
7 |
-
ENV NLTK_DATA="/app/nltk_data"
|
8 |
-
|
9 |
-
CMD ["/app/env/bin/autotrain", "app", "--host", "0.0.0.0", "--port", "7860", "--workers", "1"]
|
|
|
1 |
FROM huggingface/autotrain-advanced:latest
|
2 |
|
3 |
+
CMD /bin/bash -c "pip uninstall -y autotrain-advanced && pip install -U autotrain-advanced && pip install nltk && python -c 'import nltk; nltk.download(\"punkt\", download_dir=\"/app/nltk_data\")' && autotrain app --host 0.0.0.0 --port 7860 --workers 1"
|
|
|
|
|
|
|
|
|
|
|
|