FROM python:3.9 WORKDIR /code COPY ./requirements.txt /code/requirements.txt #RUN pip install torch==1.9.1+cu111 torchvision==0.10.1+cu111 -f https://download.pytorch.org/whl/torch_stable.ht RUN pip install torch==1.9.1 torchvision==0.10.1 -f https://download.pytorch.org/whl/torch_stable.ht RUN pip install -U openmim RUN mim install "mmcv>=2.0.1" RUN mim install mmengine RUN git clone https://github.com/open-mmlab/mmpose.git #COPY . /whatever # Change directory to mmpose RUN cd mmpose RUN pwd RUN pip install -r requirements.txt RUN pip install -e . # How do we change it back with .. RUN cd .. # RUN mim install "mmpose>=1.1.0" RUN pip install gradio # Set up a new user named "user" with user ID 1000 RUN useradd -m -u 1000 user # Switch to the "user" user USER user # Set home to the user's home directory ENV HOME=/home/user \ PATH=/home/user/.local/bin:$PATH # Set the working directory to the user's home directory WORKDIR $HOME/app # Copy the current directory contents into the container at $HOME/app setting the owner to the user COPY --chown=user . $HOME/app CMD ["python", "app.py"]