Files
php-curl-class/tests/dockerfiles/php54/Dockerfile
T
Zach Borboa 76445a3c5a Update server used in PHP 5.4, 5.5, and 5.6 tests.
This change updates the server used for PHP 5.4, 5.5, and 5.6 tests in
order to support SEARCH requests. Using the PHP built-in web server in
these versions errors with 501 Not Implemented / Request method not
supported.
2019-05-24 08:29:21 -07:00

31 lines
1.2 KiB
Docker

FROM php:5.4-fpm
ENV DEBIAN_FRONTEND noninteractive
# Fix error:
# "W: Failed to fetch http://httpredir.debian.org/debian/dists/jessie-updates/InRelease Unable to find expected
# entry 'main/binary-amd64/Packages' in Release file (Wrong sources.list entry or malformed file)
# E: Some index files failed to download. They have been ignored, or old ones used instead."
RUN printf "%s\n" \
"deb http://archive.debian.org/debian/ jessie main" \
"deb-src http://archive.debian.org/debian/ jessie main" \
"deb http://security.debian.org jessie/updates main" \
"deb-src http://security.debian.org jessie/updates main" \
> /etc/apt/sources.list
RUN apt-get --assume-yes --quiet update
RUN apt-get --assume-yes --quiet install git && \
apt-get --assume-yes --quiet install libpng-dev && \
apt-get --assume-yes --quiet install zip
RUN curl --silent --show-error "https://getcomposer.org/installer" | php && \
mv "composer.phar" "/usr/local/bin/composer" && \
composer global require --no-interaction "phpunit/phpunit"
RUN docker-php-ext-configure gd && \
docker-php-ext-install gd && \
docker-php-ext-install mbstring
ENV PATH /root/.composer/vendor/bin:$PATH
CMD ["bash"]