SHIKARICHACHA's picture
Upload 8 files
73d4308 verified
raw
history blame contribute delete
473 Bytes
FROM python:3.9-slim
WORKDIR /app
# Install system dependencies
RUN apt-get update && apt-get install -y \
libgl1-mesa-glx \
libglib2.0-0 \
&& rm -rf /var/lib/apt/lists/*
# Copy requirements and install dependencies
COPY requirements.txt .
RUN pip install --no-cache-dir -r requirements.txt
# Copy application files
COPY app.py .
COPY tomato_disease_model.h5 .
# Expose port for Gradio
EXPOSE 7860
# Command to run the application
CMD ["python", "app.py"]