Skip to content

Commit 715c51a

Browse files
committed
fix: Enable PHP packages in apt docker-library/php#542
1 parent b2e6843 commit 715c51a

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

DockerfileWeb

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,8 @@
1-
FROM php:5.6-apache
1+
FROM php:5.6-apache-jessie
22

3+
RUN rm /etc/apt/preferences.d/no-debian-php
34
# install memcache depdencies
4-
RUN apt update
5+
RUN apt-get update
56
RUN apt-get install -y \
67
php5-xmlrpc \
78
php5-memcache \
@@ -30,7 +31,7 @@ RUN echo "extension=memcache.so" >> /usr/local/etc/php/php.ini
3031
RUN echo "date.timezone = Europe/Prague" >> /usr/local/etc/php/php.ini
3132

3233
# install xdebug
33-
RUN pecl install xdebug
34+
RUN pecl install xdebug-2.5.5 # lates xdebug that supports php5
3435
RUN echo "zend_extension=/usr/local/lib/php/extensions/no-debug-non-zts-20131226/xdebug.so" >> /usr/local/etc/php/php.ini
3536
RUN echo "xdebug.remote_enable=1" >> /usr/local/etc/php/php.ini
3637
RUN echo "xdebug.idekey=PHPSTORM" >> /usr/local/etc/php/php.ini
@@ -39,4 +40,4 @@ RUN echo "xdebug.remote_connect_back=1" >> /usr/local/etc/php/php.ini
3940
# install composer
4041
RUN curl -sS https://getcomposer.org/installer | php -- --install-dir=/bin
4142

42-
EXPOSE 9000
43+
EXPOSE 9000

0 commit comments

Comments
 (0)