hackergeek commited on
Commit
8170739
·
verified ·
1 Parent(s): 92fc66c

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +11 -1
Dockerfile CHANGED
@@ -1,2 +1,12 @@
 
1
  FROM huggingface/autotrain-advanced:latest
2
- CMD pip uninstall -y autotrain-advanced && pip install -U autotrain-advanced && autotrain app --host 0.0.0.0 --port 7860 --workers 1
 
 
 
 
 
 
 
 
 
 
1
+ # Use the official AutoTrain Advanced image
2
  FROM huggingface/autotrain-advanced:latest
3
+
4
+ # Update autotrain-advanced to the latest version
5
+ RUN pip uninstall -y autotrain-advanced && \
6
+ pip install -U autotrain-advanced
7
+
8
+ # Expose the port for the AutoTrain app
9
+ EXPOSE 7860
10
+
11
+ # Run the AutoTrain app
12
+ CMD autotrain app --host 0.0.0.0 --port 7860 --workers 1