| 12345678910111213141516 |
- FROM python:3.9.13-bullseye
- RUN ln -sf /usr/share/zoneinfo/Asia/Shanghai /etc/localtime && echo 'Asia/Shanghai' > /etc/timezone
- WORKDIR /pose
- COPY requirements.txt .
- RUN pip3 install --no-cache-dir -i https://pypi.tuna.tsinghua.edu.cn/simple -r requirements.txt
- RUN python -m pip install detectron2 --no-cache-dir -f https://dl.fbaipublicfiles.com/detectron2/wheels/cpu/torch1.10/index.html
- # RUN sed -i 's/deb.debian.org/mirrors.tuna.tsinghua.edu.cn/g' /etc/apt/sources.list
- COPY . .
- CMD ["gunicorn", "app:app"]
|