Irrigation_Trial / Dockerfile
krushimitravit's picture
Upload 9 files
f574f17 verified
Raw
History Blame Contribute Delete
375 Bytes
# Use lightweight Python image
FROM python:3.10-slim
# Set working directory
WORKDIR /app
# Install dependencies
COPY requirements.txt .
RUN pip install --no-cache-dir -r requirements.txt
# Copy app code
COPY . .
# Expose the port HF Spaces expects
EXPOSE 7860
# Start the app with gunicorn
CMD ["gunicorn", "-w", "2", "-b", "0.0.0.0:7860", "app:app"]