From f3333e2be2d35c07f68978e8d3b6a829a720cdf2 Mon Sep 17 00:00:00 2001 From: Harry-zklcdc <1269158832@qq.com> Date: Fri, 15 Nov 2019 10:44:17 +0800 Subject: [PATCH] =?UTF-8?q?=E5=8D=87=E7=BA=A7GCC=E5=92=8CG++=E7=89=88?= =?UTF-8?q?=E6=9C=AC?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Dockerfile | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/Dockerfile b/Dockerfile index eb28536..328cbd7 100644 --- a/Dockerfile +++ b/Dockerfile @@ -4,15 +4,15 @@ COPY build/java_policy /etc RUN buildDeps='software-properties-common git libtool cmake python-dev python3-pip python-pip libseccomp-dev' && \ apt-get update && apt-get install -y python python3.5 python-pkg-resources python3-pkg-resources $buildDeps && \ - add-apt-repository ppa:ubuntu-toolchain-r/test && apt-get update && apt-get install -y gcc-8.2 g++-8.2 && \ - rm /usr/bin/gcc /usr/bin/g++ && ln -s /usr/bin/gcc-8.2 /usr/bin/gcc && ln -s /usr/bin/g++-8.2 /usr/bin/g++ && \ + add-apt-repository ppa:ubuntu-toolchain-r/test && apt-get update && apt-get install -y gcc-9 g++-9 && \ + rm /usr/bin/gcc /usr/bin/g++ && ln -s /usr/bin/gcc-9 /usr/bin/gcc && ln -s /usr/bin/g++-9 /usr/bin/g++ && \ add-apt-repository ppa:openjdk-r/ppa && apt-get update && apt-get install -y openjdk-8-jdk && \ pip3 install --no-cache-dir psutil gunicorn flask requests && \ cd /tmp && git clone -b newnew --depth 1 https://github.com/QingdaoU/Judger && cd Judger && \ mkdir build && cd build && cmake .. && make && make install && cd ../bindings/Python && python3 setup.py install && \ apt-get purge -y --auto-remove $buildDeps && \ apt-get clean && rm -rf /var/lib/apt/lists/* && \ - ln -s /usr/bin/gcc-8.2 /usr/bin/gcc && ln -s /usr/bin/g++-8.2 /usr/bin/g++ && \ + ln -s /usr/bin/gcc-9 /usr/bin/gcc && ln -s /usr/bin/g++-9 /usr/bin/g++ && \ mkdir -p /code && \ useradd -u 12001 compiler && useradd -u 12002 code && useradd -u 12003 spj && usermod -a -G code spj