Step 3/6 : RUN echo "deb http://http.debian.net/debian jessie-backports main" >> /etc/apt/sources.list && install_packages ca-certificates-java/jessie-backports openjdk-8-jdk-headless bzip2
---> Running in 9a2993d6777d
W: Failed to fetch http://http.debian.net/debian/dists/jessie-backports/main/binary-amd64/Packages 404 Not Found
E: Some index files failed to download. They have been ignored, or old ones used instead.
apt failed, retrying
W: Failed to fetch http://http.debian.net/debian/dists/jessie-backports/main/binary-amd64/Packages 404 Not Found
E: Some index files failed to download. They have been ignored, or old ones used instead.
apt failed, retrying
W: Failed to fetch http://http.debian.net/debian/dists/jessie-backports/main/binary-amd64/Packages 404 Not Found
E: Some index files failed to download. They have been ignored, or old ones used instead.
The command '/bin/sh -c echo "deb http://http.debian.net/debian jessie-backports main" >> /etc/apt/sources.list && install_packages ca-certificates-java/jessie-backports openjdk-8-jdk-headless bzip2' returned a non-zero code: 100
Step 3/6 : RUN echo "deb http://archive.debian.org/debian jessie-backports main" >> /etc/apt/sources.list && install_packages ca-certificates-java/jessie-backports openjdk-8-jdk-headless bzip2
---> Running in 2b914bb08812
E: Release file for http://archive.debian.org/debian/dists/jessie-backports/InRelease is expired (invalid since 110d 2h 21min 18s). Updates for this repository will not be applied.
apt failed, retrying
E: Release file for http://archive.debian.org/debian/dists/jessie-backports/InRelease is expired (invalid since 110d 2h 21min 23s). Updates for this repository will not be applied.
apt failed, retrying
E: Release file for http://archive.debian.org/debian/dists/jessie-backports/InRelease is expired (invalid since 110d 2h 21min 28s). Updates for this repository will not be applied.
The command '/bin/sh -c echo "deb http://archive.debian.org/debian jessie-backports main" >> /etc/apt/sources.list && install_packages ca-certificates-java/jessie-backports openjdk-8-jdk-headless bzip2' returned a non-zero code: 100
Step 3/6 : RUN echo "deb http://http.debian.net/debian stretch-backports main" >> /etc/apt/sources.list && install_packages ca-certificates-java/stretch-backports openjdk-8-jdk-headless bzip2
---> Running in 138ec0113c33
Reading package lists...
Building dependency tree...
Reading state information...
Package openjdk-8-jdk-headless is not available, but is referred to by another package.
This may mean that the package is missing, has been obsoleted, or
is only available from another source
apt failed, retrying
E: Release 'stretch-backports' for 'ca-certificates-java' was not found
E: Package 'openjdk-8-jdk-headless' has no installation candidate
Reading package lists...
Building dependency tree...
Reading state information...
Package openjdk-8-jdk-headless is not available, but is referred to by another package.
This may mean that the package is missing, has been obsoleted, or
is only available from another source
E: Release 'stretch-backports' for 'ca-certificates-java' was not found
E: Package 'openjdk-8-jdk-headless' has no installation candidate
apt failed, retrying
Reading package lists...
Building dependency tree...
Reading state information...
Package openjdk-8-jdk-headless is not available, but is referred to by another package.
This may mean that the package is missing, has been obsoleted, or
is only available from another source
E: Release 'stretch-backports' for 'ca-certificates-java' was not found
E: Package 'openjdk-8-jdk-headless' has no installation candidate
The command '/bin/sh -c echo "deb http://http.debian.net/debian stretch-backports main" >> /etc/apt/sources.list && install_packages ca-certificates-java/stretch-backports openjdk-8-jdk-headless bzip2' returned a non-zero code: 100
So I guess there some related changes that need to be made.