Dockerfile 716 B

12345678910111213141516
  1. FROM python:3.7
  2. #WORKDIR /home/seecoder/Documents/pose-correction/pc-demo
  3. WORKDIR /root/openpose/pose-correction/pc-demo
  4. COPY requirements.txt ./
  5. RUN pip install -r requirements.txt -i https://pypi.tuna.tsinghua.edu.cn/simple
  6. RUN pip install PyMySQL
  7. RUN sed -i 's/ports.ubuntu.com/mirror.tuna.tsinghua.edu.cn/g' /etc/apt/sources.list
  8. #RUN pip install -i https://pypi.tuna.tsinghua.edu.cn/simple --trusted-host pypi.tuna.tsinghua.edu.cn opencv-contrib-python
  9. #RUN pip install -i https://pypi.tuna.tsinghua.edu.cn/simple --trusted-host pypi.tuna.tsinghua.edu.cn opencv-python
  10. RUN apt update
  11. RUN apt install -y libgl1-mesa-glx
  12. COPY . .
  13. #RUN python db.py
  14. CMD ["gunicorn", "flask_api:app", "-c", "./gunicorn.conf.py"]