From 3b9fa502ea14d6c14257383d52bc1d88d0069c9e Mon Sep 17 00:00:00 2001 From: liudali Date: Mon, 13 May 2019 23:16:17 +0800 Subject: [PATCH] update by mkumatag's comment,image can work without any of these crazy patches --- guestbook/php-redis/Dockerfile | 4 ---- guestbook/php-redis/fixup-apt-list.sh | 15 --------------- 2 files changed, 19 deletions(-) delete mode 100755 guestbook/php-redis/fixup-apt-list.sh diff --git a/guestbook/php-redis/Dockerfile b/guestbook/php-redis/Dockerfile index e88a82cc0..16df47ca9 100644 --- a/guestbook/php-redis/Dockerfile +++ b/guestbook/php-redis/Dockerfile @@ -14,10 +14,6 @@ FROM php:5-apache -COPY fixup-apt-list.sh / -RUN ["/fixup-apt-list.sh"] - -RUN apt-get update RUN pear channel-discover pear.nrk.io RUN pear install nrk/Predis diff --git a/guestbook/php-redis/fixup-apt-list.sh b/guestbook/php-redis/fixup-apt-list.sh deleted file mode 100755 index 4eb76f9ab..000000000 --- a/guestbook/php-redis/fixup-apt-list.sh +++ /dev/null @@ -1,15 +0,0 @@ -#!/usr/bin/env bash - -DEB_ARCH=$(dpkg --print-architecture) - -# http://security.debian.org/debian-security/dists/jessie/updates/InRelease is missing -# entries for some platforms, so we just remove the last line in sources.list in -# /etc/apt/sources.list which is "deb http://deb.debian.org/debian jessie-updates main" - -case ${DEB_ARCH} in - arm64|ppc64el|s390x) - sed -i '/security/d' /etc/apt/sources.list - ;; -esac - -exit 0