irrigation_trial / Dockerfile
RushiMane2003's picture
Create Dockerfile
623486c verified
raw
history blame contribute delete
357 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"]