Skip to content

Commit 6a45225

Browse files
committed
fix build
1 parent ed605d1 commit 6a45225

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

Dockerfile

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
FROM ubuntu:18.04
22

33
COPY 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
55
ENV DEBIAN_FRONTEND=noninteractive
66
RUN 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\nopcache.enable_cli=1\nopcache.jit=1205\nopcache.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/* && \

0 commit comments

Comments
 (0)