AvocadoMuffin commited on
Commit
deaf738
·
verified ·
1 Parent(s): 5127f8d

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +5 -8
Dockerfile CHANGED
@@ -1,11 +1,8 @@
 
1
  FROM huggingface/autotrain-advanced:latest
2
 
3
- # Force reinstall compatible datasets version that still includes load_metric
4
- RUN pip install --force-reinstall datasets==2.7.0
5
 
6
- # (Optional) Pin autotrain-advanced to a compatible version that expects load_metric
7
- RUN pip install --force-reinstall autotrain-advanced==0.8.35
8
-
9
- # If you have a requirements.txt for other dependencies, copy and install them:
10
- # COPY requirements.txt .
11
- # RUN pip install -r requirements.txt
 
1
+ # 🧠 Use the official AutoTrain Advanced base image
2
  FROM huggingface/autotrain-advanced:latest
3
 
4
+ # 🚀 Expose required port for web UI
5
+ EXPOSE 7860
6
 
7
+ # 🏃 Start the AutoTrain UI when the container launches
8
+ CMD ["autotrain", "app", "start"]