mirror of
https://github.com/renbaoshuo/S2OJ.git
synced 2024-11-22 13:28:41 +00:00
chore: cache apt packages
This commit is contained in:
parent
c36339a05b
commit
5e056f8e30
@ -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
|
||||||
|
|
||||||
|
@ -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
|
||||||
|
Loading…
Reference in New Issue
Block a user