EyeDiseaseDetection / Dockerfile
GilbertKrantz's picture
[CHORE] Renamed Dockerfile
471450b
FROM python:3.12.9-slim
WORKDIR /app
# Install system dependencies
RUN apt-get update && apt-get install -y \
git \
libgl1-mesa-glx \
libglib2.0-0 \
&& rm -rf /var/lib/apt/lists/*
# Copy requirements first to leverage Docker cache
COPY requirements.txt .
# Install Python dependencies
RUN pip install --no-cache-dir -r requirements.txt
# Copy project files
COPY . .
# Make the gradio inference script executable
RUN chmod +x gradio_inference.py
# Expose port for Gradio
EXPOSE 7860
# Set the entrypoint command
CMD ["python", "gradio_inference.py"]