File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed
Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change 11FROM ubuntu:18.04
22
33COPY build/java_policy /etc
4- # RUN sed -E -i -e 's/(archive|ports).ubuntu.com/mirrors.tuna.tsinghua.edu.cn /g' -e '/security.ubuntu.com/d' /etc/apt/sources.list
4+ # RUN sed -E -i -e 's/(archive|ports).ubuntu.com/mirrors.aliyun.com /g' -e '/security.ubuntu.com/d' /etc/apt/sources.list
55ENV DEBIAN_FRONTEND=noninteractive
66RUN buildDeps='software-properties-common git libtool cmake python-dev python3-pip python-pip libseccomp-dev curl' && \
77 apt-get update && apt-get install -y python python3 python-pkg-resources python3-pkg-resources $buildDeps && \
@@ -14,8 +14,8 @@ RUN buildDeps='software-properties-common git libtool cmake python-dev python3-p
1414 update-alternatives --install /usr/bin/g++ g++ /usr/bin/g++-9 40 && \
1515 phpJitOption='opcache.enable=1\n opcache.enable_cli=1\n opcache.jit=1205\n opcache.jit_buffer_size=64M' && \
1616 echo $phpJitOption > /etc/php/8.0/cli/conf.d/10-opcache-jit.ini && \
17- pip3 install -I --no-cache-dir psutil gunicorn flask requests idna && \
18- cd /tmp && git clone -b newnew --depth 1 https://github .com/QingdaoU /Judger && cd Judger && \
17+ pip3 install -i https://mirrors.aliyun.com/pypi/simple/ - I --no-cache-dir psutil gunicorn flask requests idna && \
18+ cd /tmp && git clone -b newnew --depth 1 https://gitee .com/qduoj /Judger.git && cd Judger && \
1919 mkdir build && cd build && cmake .. && make && make install && cd ../bindings/Python && python3 setup.py install && \
2020 apt-get purge -y --auto-remove $buildDeps && \
2121 apt-get clean && rm -rf /var/lib/apt/lists/* && \
You can’t perform that action at this time.
0 commit comments