Extend3D / Dockerfile
junaid-simamdigital's picture
Deploy Extend3D Docker Space
d5811d7 verified
Raw History Blame Contribute Delete
840 Bytes
FROM nvidia/cuda:12.4.1-cudnn-devel-ubuntu22.04
ENV DEBIAN_FRONTEND=noninteractive
ENV PYTHONUNBUFFERED=1
ENV GRADIO_SERVER_NAME=0.0.0.0
ENV GRADIO_SERVER_PORT=7860
ENV HF_HOME=/home/user/.cache/huggingface
ENV TORCH_HOME=/home/user/.cache/torch
RUN apt-get update && apt-get install -y --no-install-recommends \
python3.10 \
python3.10-venv \
python3-pip \
git \
ffmpeg \
libgl1 \
libglib2.0-0 \
build-essential \
ninja-build \
&& rm -rf /var/lib/apt/lists/*
RUN useradd -m -u 1000 user
USER user
ENV HOME=/home/user
ENV PATH=/home/user/.local/bin:$PATH
WORKDIR /home/user/app
COPY --chown=user . /home/user/app
RUN python3.10 -m pip install --user --upgrade pip setuptools wheel
RUN python3.10 -m pip install --user --no-cache-dir -r requirements.txt
EXPOSE 7860
CMD ["python3.10", "app.py"]