harikbab02's picture
Upload folder using huggingface_hub
b44786d verified
raw
history blame contribute delete
573 Bytes
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"]