File tree Expand file tree Collapse file tree 1 file changed +9
-3
lines changed Expand file tree Collapse file tree 1 file changed +9
-3
lines changed Original file line number Diff line number Diff line change 9
9
# software components inside the image are under the respective
10
10
# licenses chosen by their respective copyright holders.
11
11
#
12
- FROM ubuntu:20.10
12
+ FROM ubuntu:22.04
13
13
MAINTAINER Thomas Weise <tweise@hfuu.edu.cn>
14
14
15
15
ENV LANG=C.UTF-8
16
16
ENV DEBIAN_FRONTEND=noninteractive
17
17
18
- RUN echo "Initial update." &&\
19
- apt-get update &&\
18
+ RUN echo "Using chinese apt mirror, because otherwise I cannot build this image on my PC." &&\
19
+ sed -i 's/archive\. ubuntu\. com/mirrors.ustc.edu.cn/g' /etc/apt/sources.list &&\
20
+ echo "/etc/apt/sources.list is now:" &&\
21
+ cat /etc/apt/sources.list &&\
22
+ echo "Performing initial clean-up and updates." &&\
23
+ apt-get -y update &&\
24
+ apt-get -y --fix-missing --no-install-recommends install &&\
25
+ apt-get -y --with-new-pkgs --no-install-recommends upgrade &&\
20
26
# prevent doc and man pages from being installed
21
27
# the idea is based on https://askubuntu.com/questions/129566
22
28
echo "Preventing doc and man pages from being installed." &&\
You can’t perform that action at this time.
0 commit comments