udaya67/camera_HMR_Gradio
0
1FROM python:3.92 3 4RUN apt-get update && apt-get install -y git5 6# Upgrade pip and setuptools7RUN pip install --upgrade pip setuptools && \8 pip install "omegaconf>=2.1" "fvcore" "timm" && \9 pip install git+https://github.com/facebookresearch/detectron2.git10 11WORKDIR /code12COPY ./requirements.txt /code/requirements.txt13 14RUN pip install --no-cache-dir --upgrade -r /code/requirements.txt15 16# Set up a new user named "user" with user ID 100017RUN useradd -m -u 1000 user18 19# Switch to the "user" user20USER user21 22# Set home to the user's home directory23ENV HOME=/home/user \24 PATH=/home/user/.local/bin:$PATH25 26# Set the working directory to the user's home directory27WORKDIR $HOME/app28 29# Set environment variables for GPU and Python30ENV PYTHONUNBUFFERED=131ENV NVIDIA_VISIBLE_DEVICES=all32ENV NVIDIA_DRIVER_CAPABILITIES=all33 34# Expose Gradio port35EXPOSE 786036 37# Default command38CMD ["python", "app.py"]