superkart-sales-api / Dockerfile
deva8217's picture
Create Dockerfile
2c73e78 verified
raw
history blame contribute delete
336 Bytes
# Use official Python image
FROM python:3.9-slim
# Set working directory
WORKDIR /app
# Copy files
COPY app.py .
COPY requirements.txt .
COPY best_sales_forecasting_model.pkl .
# Install dependencies
RUN pip install --no-cache-dir -r requirements.txt
# Expose port for HF Spaces
EXPOSE 7860
# Start the API
CMD ["python", "app.py"]