chore: cache apt packages

This commit is contained in:
Baoshuo Ren 2022-09-19 21:53:12 +08:00
parent c36339a05b
commit 5e056f8e30
Signed by: baoshuo
GPG Key ID: 00CB9680AB29F51A
2 changed files with 5 additions and 2 deletions

View File

@ -2,6 +2,9 @@ FROM ubuntu:20.04
ARG CLONE_ADDFLAG 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 ADD . /opt/uoj_judger
WORKDIR /opt/uoj_judger WORKDIR /opt/uoj_judger

View File

@ -60,12 +60,12 @@ UOJEOF
} }
prepProgress(){ prepProgress(){
getAptPackage;setJudgeConf setJudgeConf
} }
if [ $# -le 0 ]; then if [ $# -le 0 ]; then
echo 'Installing UOJ System judger...' echo 'Installing UOJ System judger...'
prepProgress;initProgress getAptPackage;prepProgress;initProgress
fi fi
while [ $# -gt 0 ]; do while [ $# -gt 0 ]; do
case "$1" in case "$1" in