MV3DR / Dockerfile
sharifIslam's picture
Ensure Gradio temp cache directory exists in HF runtime
4fc47da
Raw
History Blame Contribute Delete
577 Bytes
FROM python:3.10-slim
WORKDIR /app
# System dependencies
RUN apt-get update && apt-get install -y \
libgl1 \
libglib2.0-0 \
libsm6 \
libxext6 \
ffmpeg \
wget \
git \
&& rm -rf /var/lib/apt/lists/*
# Copy requirements first (better caching)
COPY requirements.txt .
RUN pip install --no-cache-dir --upgrade pip
RUN pip install --no-cache-dir -r requirements.txt
# Copy project
COPY . .
EXPOSE 7860
ENV GRADIO_SERVER_NAME=0.0.0.0
ENV GRADIO_SERVER_PORT=7860
ENV GRADIO_TEMP_DIR=/tmp/gradio
RUN mkdir -p /tmp/gradio
CMD ["python", "app.py"]