Dockerfile 726 B

1234567891011121314151617181920212223
  1. FROM mcr.microsoft.com/playwright/python
  2. RUN mkdir /syj
  3. WORKDIR /syj/
  4. #RUN sed -i 's/dl-cdn.alpinelinux.org/mirrors.ustc.edu.cn/g' /etc/apt-get/repositories
  5. ADD sources.list /etc/apt/sources.list
  6. RUN apt-get update
  7. #RUN apt-get install tzdata
  8. RUN apt-get install -y zip
  9. RUN ln -sf /usr/share/zoneinfo/Asia/Shanghai /etc/localtime
  10. RUN python3 -m pip config set global.index-url https://mirrors.aliyun.com/pypi/simple/
  11. RUN python3 -m pip install --upgrade pip
  12. RUN echo "Asia/Shanghai" > /etc/timezone
  13. ADD tmp/src.tar.gz /syj/
  14. RUN cd /syj && python3 -m pip install -U -r requirements.txt
  15. RUN playwright install chromium
  16. RUN #playwright install msedge
  17. RUN python3 -m pip install pyinstaller
  18. ENV PYTHONPATH "${PYTONPATH}:/syj"