Browse Source

(fix) 构建错误:ERROR: Could not open requirements file: [Errno 2] No such file or directory: 'requirements_linux.txt'

main
Julin 11 months ago
parent
commit
a5535e4490
  1. 2
      code/pep-stats-report/Dockerfile

2
code/pep-stats-report/Dockerfile

@ -5,7 +5,7 @@ WORKDIR /app
COPY . . COPY . .
RUN pip install --upgrade pip -i http://mirrors.aliyun.com/pypi/simple/ --trusted-host mirrors.aliyun.com && \ RUN pip install --upgrade pip -i http://mirrors.aliyun.com/pypi/simple/ --trusted-host mirrors.aliyun.com && \
pip install -r requirements_linux.txt -i http://mirrors.aliyun.com/pypi/simple/ --trusted-host mirrors.aliyun.com && \ pip install -r ./requirements_linux.txt -i http://mirrors.aliyun.com/pypi/simple/ --trusted-host mirrors.aliyun.com && \
cp SimHei.ttf /usr/local/lib/python3.8/site-packages/matplotlib/mpl-data/fonts/ttf && \ cp SimHei.ttf /usr/local/lib/python3.8/site-packages/matplotlib/mpl-data/fonts/ttf && \
pyinstaller -F main.py --distpath=. pyinstaller -F main.py --distpath=.

Loading…
Cancel
Save