diff --git a/Dockerfile b/Dockerfile index c5a30d682..6fd322161 100644 --- a/Dockerfile +++ b/Dockerfile @@ -3,8 +3,8 @@ FROM ubuntu:22.04 ENV DEBIAN_FRONTEND noninteractive ENV LC_CTYPE=C.UTF-8 -RUN sed -i.bak 's|https\?://archive.ubuntu.com|https://mirrors.hust.edu.cn|g' /etc/apt/sources.list \ - apt-get update && \ +RUN sed -i.bak 's|https\?://archive.ubuntu.com|https://mirrors.hust.edu.cn|g' /etc/apt/sources.list +RUN apt-get update && \ apt-get install -y \ build-essential \ git \ diff --git a/challenge/Dockerfile_amd64 b/challenge/Dockerfile_amd64 index 48aed3cfd..a9fe607d1 100644 --- a/challenge/Dockerfile_amd64 +++ b/challenge/Dockerfile_amd64 @@ -43,9 +43,9 @@ RUN <> /etc/apt/apt.conf.d/01norecommends \ && echo 'APT::Install-Suggests 0;' >> /etc/apt/apt.conf.d/01norecommends \ && apt-get update \