Spaces:
Runtime error
Runtime error
| # Use a lightweight Python image | |
| FROM python:3.9-slim | |
| # Set the working directory | |
| WORKDIR /app | |
| # Copy the requirements file and install dependencies | |
| COPY requirements.txt . | |
| RUN pip install --no-cache-dir -r requirements.txt | |
| # Copy the application code and the trained model | |
| COPY app.py . | |
| COPY best_sales_forecasting_model.pkl . | |
| # Expose the port the app runs on | |
| EXPOSE 5000 | |
| # Command to run the application | |
| CMD ["flask", "run", "--host=0.0.0.0", "--port=5000"] | |