Dockerfile 520 B

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