Spaces:
Sleeping
Sleeping
Download Dockerfile from rasmodev/Sales_Prediction_App: direct link, hf CLI and curl.
- Browser
- Download file 631 Bytes
-
https://huggingface.co/spaces/rasmodev/Sales_Prediction_App/resolve/main/Dockerfile
- Command line
-
hf download hf://spaces/rasmodev/Sales_Prediction_App/Dockerfile
-
curl -L -o Dockerfile https://huggingface.co/spaces/rasmodev/Sales_Prediction_App/resolve/main/Dockerfile
631 Bytes
| # Use the official Python image as a parent image | |
| FROM python:3.11.3-slim | |
| # Set the working directory within the container | |
| WORKDIR /app | |
| # Copy the requirements.txt file into the container | |
| COPY ./requirements.txt /app | |
| # Install the Python dependencies | |
| RUN pip install -r /app/requirements.txt | |
| # Copy your Streamlit application code into the container | |
| COPY ./app.py /app/app.py | |
| # Copy the model and key components into the container | |
| COPY ./rf_model.pkl /app/rf_model.pkl | |
| # Expose port 8000 for the FastAPI application | |
| EXPOSE 7860 | |
| # Command to start the Streamlit app | |
| CMD ["streamlit", "run", "--server.port", "7860", "app.py"] |