Created
January 7, 2018 21:58
-
-
Save drmmr763/753ea0a0848a13cb32ab43970023eced to your computer and use it in GitHub Desktop.
Php 7.2 dockerfile
This file contains 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
ubuntu:latest | |
RUN apt-get update | |
RUN apt-get -y install software-properties-common python-software-properties | |
RUN apt-get -y --no-install-recommends install \ | |
ca-certificates \ | |
inetutils-ping \ | |
telnet \ | |
curl \ | |
nano \ | |
net-tools \ | |
make \ | |
git \ | |
nginx \ | |
zip \ | |
unzip \ | |
mysql-client | |
RUN apt-get install -y language-pack-en-base | |
RUN LC_ALL=C.UTF-8 add-apt-repository ppa:ondrej/php | |
RUN apt-get update | |
RUN apt-get -y --no-install-recommends install \ | |
php7.2 \ | |
php7.2-fpm \ | |
php7.2-dev \ | |
php7.2-mbstring \ | |
php7.2-xml \ | |
php7.2-zip \ | |
php7.2-mysql \ | |
nodejs \ | |
npm | |
RUN git clone https://github.com/xdebug/xdebug.git && cd xdebug && ./rebuild.sh | |
RUN curl -OL https://squizlabs.github.io/PHP_CodeSniffer/phpcs.phar && \ | |
cp phpcs.phar /usr/local/bin/phpcs && \ | |
chmod +x /usr/local/bin/phpcs | |
RUN curl -sS https://getcomposer.org/installer | php -- --install-dir=/usr/bin/ --filename=composer | |
RUN composer install | |
RUN ln -s /usr/bin/nodejs /usr/bin/node | |
RUN npm install -g grunt-cli | |
RUN npm install | |
COPY xdebug.ini /etc/php/7.2/cli/conf.d/xdebug.ini | |
COPY xdebug.ini /etc/php/7.2/fpm/conf.d/xdebug.ini | |
COPY default.site.nginx /etc/nginx/sites-available/default | |
EXPOSE 9000 | |
CMD sh startup.sh |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment