sagarpatelcompstak commited on
Commit
503557c
·
verified ·
1 Parent(s): 550249c

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +1 -7
Dockerfile CHANGED
@@ -1,9 +1,3 @@
1
  FROM huggingface/autotrain-advanced:latest
2
 
3
- RUN pip uninstall -y autotrain-advanced && pip install -U autotrain-advanced \
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"