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