Dockerfile 439 B

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