SchemeAi / Dockerfile
abeerrai01
initial
46c2ae6
raw
history blame contribute delete
459 Bytes
# =========================
# 🌾 Smart Farmer Advisor Dockerfile
# =========================
# Use lightweight Python image
FROM python:3.10-slim
# Create working directory
WORKDIR /app
# Copy files
COPY . /app
# Install dependencies
RUN pip install --no-cache-dir -r requirements.txt
# Expose port (Hugging Face will map this automatically)
EXPOSE 7860
# Run FastAPI app with uvicorn
CMD ["uvicorn", "app:app", "--host", "0.0.0.0", "--port", "7860"]