ghosthets commited on
Commit
b389772
·
verified ·
1 Parent(s): 03a527d

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +8 -4
Dockerfile CHANGED
@@ -1,10 +1,14 @@
 
1
  FROM huggingface/autotrain-advanced:latest
2
 
3
- # Upgrade autotrain-advanced at build time
4
- RUN pip uninstall -y autotrain-advanced && pip install -U autotrain-advanced
5
 
6
- # Expose port
 
 
 
7
  EXPOSE 7860
8
 
9
- # Start the app at runtime
10
  CMD ["autotrain", "app", "--host", "0.0.0.0", "--port", "7860", "--workers", "1"]
 
1
+ # Use Hugging Face autotrain base image
2
  FROM huggingface/autotrain-advanced:latest
3
 
4
+ # Upgrade pip just in case
5
+ RUN pip install --upgrade pip
6
 
7
+ # Upgrade autotrain-advanced safely (without uninstalling)
8
+ RUN pip install --upgrade autotrain-advanced
9
+
10
+ # Expose the port for the app
11
  EXPOSE 7860
12
 
13
+ # Run the autotrain app
14
  CMD ["autotrain", "app", "--host", "0.0.0.0", "--port", "7860", "--workers", "1"]