Skip to content

Commit 8ae4583

Browse files
committed
version 2: now based on ubuntu 22.04
1 parent 475d8bb commit 8ae4583

File tree

1 file changed

+9
-3
lines changed

1 file changed

+9
-3
lines changed

image/Dockerfile

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,14 +9,20 @@
99
# software components inside the image are under the respective
1010
# licenses chosen by their respective copyright holders.
1111
#
12-
FROM ubuntu:20.10
12+
FROM ubuntu:22.04
1313
MAINTAINER Thomas Weise <tweise@hfuu.edu.cn>
1414

1515
ENV LANG=C.UTF-8
1616
ENV DEBIAN_FRONTEND=noninteractive
1717

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 &&\
2026
# prevent doc and man pages from being installed
2127
# the idea is based on https://askubuntu.com/questions/129566
2228
echo "Preventing doc and man pages from being installed." &&\

0 commit comments

Comments
 (0)