Rhinoplasty-PronoseAI / Dockerfile
devbucky's picture
Update Dockerfile
4ba678f verified
Raw History Blame Contribute Delete
676 Bytes
FROM python:3.10
# Install system dependencies for MediaPipe, OpenCV, and Gradio
RUN apt-get update && apt-get install -y \
libgl1 \
libglib2.0-0 \
libsm6 \
libxext6 \
libxrender1 \
libgomp1 \
libgthread-2.0-0 \
libavcodec-dev \
libavformat-dev \
libswscale-dev \
ffmpeg \
git \
&& rm -rf /var/lib/apt/lists/*
WORKDIR /app
# Copy requirements and install Python packages
COPY requirements.txt .
RUN pip install --no-cache-dir --upgrade pip && \
pip install --no-cache-dir -r requirements.txt
# Copy application files
COPY . .
# Expose Gradio default port
EXPOSE 7860
# Run the applications
CMD ["python", "app.py"]