Skip to content

Commit fb8c2b9

Browse files
committed
fixed debian-9 Dockerfile to use snapshot mirror
1 parent 6cc6ecd commit fb8c2b9

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

devops/docker/debian-9-amd64/Dockerfile

+8
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,13 @@
11
FROM debian:stretch
22
ARG DEBIAN_FRONTEND=noninteractive
3+
4+
# debian-9 is EOL, update sources.list to use snapshot.debian.org mirrors
5+
RUN cat <<EOF > /etc/apt/sources.list
6+
deb http://snapshot.debian.org/archive/debian/20220622T000000Z stretch main
7+
deb http://snapshot.debian.org/archive/debian-security/20220622T000000Z stretch/updates main
8+
deb http://snapshot.debian.org/archive/debian/20220622T000000Z stretch-updates main
9+
EOF
10+
311
RUN apt -y update && apt-get -y install software-properties-common
412
RUN apt -y update && apt-get -y install \
513
git \

0 commit comments

Comments
 (0)