Dockerfile 440 B

123456789101112131415
  1. FROM registry.cn-hangzhou.aliyuncs.com/tuon-pub/python:3.10.4
  2. RUN mkdir /app
  3. COPY . /app
  4. RUN cd /app && pip install --no-cache-dir -r requirements.txt -i https://pypi.tuna.tsinghua.edu.cn/simple
  5. RUN sed -i 's/deb.debian.org/mirrors.ustc.edu.cn/g' /etc/apt/sources.list
  6. RUN sed -i 's/security.debian.org/mirrors.ustc.edu.cn/g' /etc/apt/sources.list
  7. RUN apt update
  8. RUN apt install -y libgl1-mesa-glx
  9. WORKDIR /app
  10. CMD ["python","task.py"]