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