File size: 396 Bytes
b389772
414ca55
03a527d
b389772
 
03a527d
b389772
 
 
 
03a527d
 
b389772
03a527d
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
# Use Hugging Face autotrain base image
FROM huggingface/autotrain-advanced:latest

# Upgrade pip just in case
RUN pip install --upgrade pip

# Upgrade autotrain-advanced safely (without uninstalling)
RUN pip install --upgrade autotrain-advanced

# Expose the port for the app
EXPOSE 7860

# Run the autotrain app
CMD ["autotrain", "app", "--host", "0.0.0.0", "--port", "7860", "--workers", "1"]