-
Notifications
You must be signed in to change notification settings - Fork 729
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* support for PHP 7.3
- Loading branch information
Showing
3 changed files
with
38 additions
and
0 deletions.
There are no files selected for viewing
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
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
# This image is the base image for the Elastica development and includes all parts which rarely change | ||
# PHP 7 Docker file with Composer installed | ||
FROM php:7.3 | ||
MAINTAINER Nicolas Ruflin <[email protected]> | ||
|
||
RUN apt-get update && apt-get install -y \ | ||
cloc \ | ||
git \ | ||
graphviz \ | ||
libxslt-dev \ | ||
nano \ | ||
zip unzip \ | ||
wget | ||
# XSL and Graphviz for PhpDocumentor | ||
|
||
RUN docker-php-ext-install sockets xsl | ||
|
||
RUN rm -r /var/lib/apt/lists/* | ||
|
||
## PHP Configuration | ||
RUN pecl install xdebug-2.7.2 | ||
|
||
RUN echo "memory_limit=1024M" >> /usr/local/etc/php/conf.d/memory-limit.ini | ||
RUN echo "date.timezone=UTC" >> /usr/local/etc/php/conf.d/timezone.ini | ||
|
||
# Install and setup composer | ||
RUN curl -sS https://getcomposer.org/installer | php -- --install-dir=/usr/local/bin --filename=composer | ||
ENV COMPOSER_HOME /root/composer | ||
|
||
# Add composer bin to the environment | ||
ENV PATH=/root/composer/vendor/bin:$PATH | ||
|
||
COPY composer.json /root/composer/ | ||
|
||
# Install development tools, prefer source removed as automatic fallback now | ||
RUN composer global install |