aiqtech/PoseMaker2
0
1# read the doc: https://huggingface.co/docs/hub/spaces-sdks-docker2# you will also find guides on how best to write your Dockerfile3 4FROM python:3.95 6WORKDIR /code7 8COPY ./requirements.txt /code/requirements.txt9 10RUN apt-get update && apt-get upgrade -y && apt-get install -y libgl1-mesa-dev11RUN pip install --no-cache-dir --upgrade -r /code/requirements.txt12RUN mim install mmcv-full==1.7.013RUN pip install mmdet==2.28.2 mmpose==0.29.0 mmengine14 15# Set up a new user named "user" with user ID 100016RUN useradd -m -u 1000 user17 18# Switch to the "user" user19USER user20 21# Set home to the user's home directory22ENV HOME=/home/user \23 PATH=/home/user/.local/bin:$PATH24 25# Set the working directory to the user's home directory26WORKDIR $HOME/app27 28# Copy the current directory contents into the container at $HOME/app setting the owner to the user29COPY --chown=user . $HOME/app30 31CMD ["uvicorn", "main:app", "--host", "0.0.0.0", "--port", "7860"]