File size: 333 Bytes
94c4f6c
 
 
 
 
 
 
 
 
 
ac96225
94c4f6c
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
# Dockerfile
FROM python:3.10

# Set working directory
WORKDIR /app

# Copy everything
COPY . /app

# Install dependencies
  RUN pip install flask torch numpy pandas joblib scikit-learn==1.6.1 gunicorn
# Expose port
EXPOSE 7860

# Run the app with gunicorn (production-ready server)
CMD ["gunicorn", "-b", "0.0.0.0:7860", "app:app"]