File size: 573 Bytes
b44786d
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
FROM python:3.9-slim

# Set the working directory
WORKDIR /app

# Copy requirements and install dependencies
COPY requirements.txt /app/requirements.txt
RUN pip install --no-cache-dir --upgrade -r /app/requirements.txt

# Copy source files into the container
COPY app.py /app/
COPY gradboost_RSCV.joblib /app/
COPY RndmFrstReg_RSCV.joblib /app/
COPY pipeline.joblib /app/
COPY feature_names.joblib /app/

# Expose the port used by the Hugging Face Docker Space
EXPOSE 7860

# Command to run the Flask app with gunicorn
CMD ["gunicorn", "--bind", "0.0.0.0:7860", "app:app"]