diff --git a/Dockerfile b/Dockerfile
index 44051f055de387e0baaef69194038afe7a4811ee..09acf899949397fdbea4746be70134a79b867095 100644
--- a/Dockerfile
+++ b/Dockerfile
@@ -1,4 +1,4 @@
-FROM debian:stretch
+FROM debian:jessie-backports
 
 ENV LANG=C.UTF-8
 ENV DEBIAN_FRONTEND=noninteractive
diff --git a/install-dependencies-verification.sh b/install-dependencies-verification.sh
index d9b30883b63f74920678fea2a7d38d8e8fbfbff7..1539291e8be0f002c0648db665adba47f97017cb 100755
--- a/install-dependencies-verification.sh
+++ b/install-dependencies-verification.sh
@@ -9,7 +9,7 @@ apt-get install -y --no-install-recommends \
 	libmagic1
 
 # Install latest diffoscope (version in Debian stable is outdated)
-pip3 install diffoscope
+pip3 install diffoscope==83
 
 # Install latest apktool for verification debugging
 wget --no-verbose https://bitbucket.org/iBotPeaches/apktool/downloads/apktool_2.3.3.jar -O /opt/apktool.jar
@@ -18,4 +18,4 @@ cat >/usr/local/bin/apktool <<EOF
 java -jar /opt/apktool.jar \$@
 EOF
 chmod +x /usr/local/bin/apktool
-mkdir -p /root/.local/share/apktool/framework
\ No newline at end of file
+mkdir -p /root/.local/share/apktool/framework
diff --git a/install-dependencies.sh b/install-dependencies.sh
index 4afd8b4e6a41762e392540b3a9d49347280ee823..8f547cb09fc2d2f97786728bdaa3c8bf087ec916 100755
--- a/install-dependencies.sh
+++ b/install-dependencies.sh
@@ -4,6 +4,8 @@ set -x
 
 apt-get install -y --no-install-recommends \
 	git \
-	default-jdk-headless \
 	unzip \
 	wget
+
+apt-get install -y --no-install-recommends -t jessie-backports \
+	openjdk-8-jdk-headless