Dockerfile 489 B

1234567891011121314151617
  1. FROM python:3.10.4
  2. RUN mkdir /app
  3. COPY . /app
  4. RUN python -m pip install paddlepaddle==2.5.2 -i https://pypi.tuna.tsinghua.edu.cn/simple
  5. RUN cd /app && pip install -r requirements.txt -i https://pypi.tuna.tsinghua.edu.cn/simple
  6. RUN sed -i 's/deb.debian.org/mirrors.ustc.edu.cn/g' /etc/apt/sources.list
  7. RUN sed -i 's/security.debian.org/mirrors.ustc.edu.cn/g' /etc/apt/sources.list
  8. RUN apt update
  9. RUN apt install -y libgl1-mesa-glx
  10. WORKDIR /app
  11. CMD ["python","main.py", "--production"]