SuperKart-Backend / Dockerfile
Venkhat's picture
Update Dockerfile
61d6da2 verified
raw
history blame contribute delete
333 Bytes
FROM python:3.12-slim
WORKDIR /app
# Copy files
COPY requirements.txt .
COPY app.py .
COPY superkart_sales_forecast_model.pkl .
# Install dependencies
RUN pip install --no-cache-dir -r requirements.txt
# Expose port (Hugging Face expects 7860)
EXPOSE 7860
# Use $PORT variable (HF sets it automatically)
CMD ["python", "app.py"]