File tree 2 files changed +11
-9
lines changed
2 files changed +11
-9
lines changed Original file line number Diff line number Diff line change @@ -2,11 +2,12 @@ FROM debian:9
2
2
3
3
ENV DEBIAN_FRONTEND noninteractive
4
4
5
- RUN sed -i 's|deb.debian.org/debian|archive.debian.org/debian|g' /etc/apt/sources.list && \
6
- sed -i 's|security.debian.org/debian-security|archive.debian.org/debian-security|g' /etc/apt/sources.list && \
7
- apt-get update -o Acquire::Check-Valid-Until=false
5
+ RUN echo "deb http://archive.debian.org/debian stretch main contrib non-free" > /etc/apt/sources.list && \
6
+ echo "deb http://archive.debian.org/debian-security stretch/updates main contrib non-free" >> /etc/apt/sources.list
7
+
8
+ RUN apt-get -o Acquire::Check-Valid-Until=false update && \
9
+ apt-get -o Acquire::AllowInsecureRepositories=true update
8
10
9
- RUN apt-get update
10
11
RUN apt-get install -y ruby libjpeg62-turbo libpng16-16 libxrender1 libfontconfig1 libxext6
11
12
12
13
CMD /root/wkhtmltopdf_binary_gem/bin/wkhtmltopdf --version
Original file line number Diff line number Diff line change @@ -2,11 +2,12 @@ FROM --platform=arm64 debian:9
2
2
3
3
ENV DEBIAN_FRONTEND noninteractive
4
4
5
- RUN sed -i 's|deb.debian.org/debian|archive.debian.org/debian|g' /etc/apt/sources.list && \
6
- sed -i 's|security.debian.org/debian-security|archive.debian.org/debian-security|g' /etc/apt/sources.list && \
7
- apt-get update -o Acquire::Check-Valid-Until=false
8
-
9
- RUN apt-get update
5
+ RUN echo "deb http://archive.debian.org/debian stretch main contrib non-free" > /etc/apt/sources.list && \
6
+ echo "deb http://archive.debian.org/debian-security stretch/updates main contrib non-free" >> /etc/apt/sources.list
7
+
8
+ RUN apt-get -o Acquire::Check-Valid-Until=false update && \
9
+ apt-get -o Acquire::AllowInsecureRepositories=true update
10
+
10
11
RUN apt-get install -y ruby libjpeg62-turbo libpng16-16 libxrender1 libfontconfig1 libxext6
11
12
12
13
CMD /root/wkhtmltopdf_binary_gem/bin/wkhtmltopdf --version
You can’t perform that action at this time.
0 commit comments