From 5e056f8e3043717038b44fad37783aaf4c826740 Mon Sep 17 00:00:00 2001 From: Baoshuo Date: Mon, 19 Sep 2022 21:53:12 +0800 Subject: [PATCH] chore: cache apt packages --- judger/Dockerfile | 3 +++ judger/install.sh | 4 ++-- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/judger/Dockerfile b/judger/Dockerfile index 745c543..48e5152 100644 --- a/judger/Dockerfile +++ b/judger/Dockerfile @@ -2,6 +2,9 @@ FROM ubuntu:20.04 ARG CLONE_ADDFLAG +ENV DEBIAN_FRONTEND=noninteractive +RUN apt-get update && apt-get install -y vim ntp zip unzip curl wget build-essential fp-compiler python2.7 python3.8 python3-requests + ADD . /opt/uoj_judger WORKDIR /opt/uoj_judger diff --git a/judger/install.sh b/judger/install.sh index c40d466..32e6a4f 100644 --- a/judger/install.sh +++ b/judger/install.sh @@ -60,12 +60,12 @@ UOJEOF } prepProgress(){ - getAptPackage;setJudgeConf + setJudgeConf } if [ $# -le 0 ]; then echo 'Installing UOJ System judger...' - prepProgress;initProgress + getAptPackage;prepProgress;initProgress fi while [ $# -gt 0 ]; do case "$1" in