Spaces:
Sleeping
Sleeping
Update Dockerfile
Browse files12345678910111213141516171819# Use a slim Python imageFROM python:3.9-slim# Set working directoryWORKDIR /app# Copy requirements and installCOPY requirements.txt .RUN pip install --no-cache-dir -r requirements.txt# Copy app and modelCOPY app.py .COPY superkart_sales_forecast.pkl .# Expose the port Hugging Face requiresEXPOSE 7860# Run the Flask appCMD ["python", "app.py"]12345678910111213141516171819202122# Use a lightweight Python base imageFROM python:3.9-slim# Set working directory inside containerWORKDIR /app# Install system-level dependencies (for pandas, scikit-learn)RUN apt-get update && apt-get install -y build-essential && rm -rf /var/lib/apt/lists/*# Copy and install Python dependenciesCOPY requirements.txt .RUN pip install --no-cache-dir -r requirements.txt# Copy app code and trained modelCOPY app.py .COPY superkart_sales_forecast.pkl .# Expose port expected by Hugging Face SpacesEXPOSE 7860# Start the Flask appCMD ["python", "app.py"]
Dockerfile+10-7