Skip to content

Commit cf89673

Browse files
committed
Update Dockerfile for PHP 7.1 and 7.2 to include Debian archive sources and allow release info change during apt-get update.
1 parent 6ab6a14 commit cf89673

File tree

2 files changed

+7
-3
lines changed

2 files changed

+7
-3
lines changed

tests/docker/php/7.1/Dockerfile

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
11
FROM php:7.1-cli
22

3-
RUN apt-get update \
3+
RUN echo "deb http://archive.debian.org/debian buster main contrib non-free" > /etc/apt/sources.list \
4+
&& echo "deb http://archive.debian.org/debian-security buster/updates main contrib non-free" >> /etc/apt/sources.list \
5+
&& apt-get update --allow-releaseinfo-change \
46
&& apt-get install -y unzip curl zlib1g-dev libicu-dev libpq-dev libgearman-dev
57

68
RUN docker-php-ext-install zip pcntl bcmath pdo_mysql intl pdo_pgsql

tests/docker/php/7.2/Dockerfile

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,9 @@
11
FROM php:7.2-cli
22

3-
RUN apt-get update \
4-
&& apt-get install -y unzip libbz2-dev curl zlib1g-dev libicu-dev libpq-dev libgearman-dev
3+
RUN echo "deb http://archive.debian.org/debian buster main contrib non-free" > /etc/apt/sources.list \
4+
&& echo "deb http://archive.debian.org/debian-security buster/updates main contrib non-free" >> /etc/apt/sources.list \
5+
&& apt-get update --allow-releaseinfo-change \
6+
&& apt-get install -y unzip curl zlib1g-dev libicu-dev libpq-dev libgearman-dev
57

68
RUN docker-php-ext-install zip pcntl bcmath pdo_mysql intl pdo_pgsql
79

0 commit comments

Comments
 (0)