Created
December 10, 2019 12:43
-
-
Save roelofjan-elsinga/d987b6e9a8ae61a6524730fc5c4b59d9 to your computer and use it in GitHub Desktop.
Dockerfile for PHP testing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
FROM debian:9.7-slim | |
ENV DEBIAN_FRONTEND=noninteractive | |
RUN apt-get update \ | |
&& apt-get install -y --no-install-recommends apt-transport-https lsb-release \ | |
ca-certificates wget build-essential \ | |
&& wget -O /etc/apt/trusted.gpg.d/php.gpg https://packages.sury.org/php/apt.gpg \ | |
&& sh -c 'echo "deb https://packages.sury.org/php/ $(lsb_release -sc) main" > /etc/apt/sources.list.d/php.list' \ | |
&& apt-get update \ | |
&& apt-get install -y --no-install-recommends php7.3 php7.3-fpm php7.3-mysql \ | |
mcrypt php7.3-gd curl php7.3-curl php7.3-mbstring php7.3-xml php7.3-soap \ | |
php7.3-zip php-zmq php7.3-bcmath php-pcov unzip \ | |
&& curl -s https://getcomposer.org/installer | php \ | |
&& mv composer.phar /usr/bin/composer \ | |
&& apt-get clean \ | |
&& rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/* | |
VOLUME /var/app | |
WORKDIR /var/app | |
EXPOSE 9000 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment