-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
add fpm-dev as dynamic container so the cache is not persistent
- Loading branch information
1 parent
165186e
commit 1b0e29d
Showing
2 changed files
with
25 additions
and
2 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,33 @@ | ||
FROM everlutionsk/fpm:7.1.12 | ||
FROM php:7.1.12-fpm | ||
|
||
MAINTAINER Ivan Barlog <[email protected]> | ||
|
||
RUN apt-get update && apt-get install -y --no-install-recommends \ | ||
libmcrypt-dev \ | ||
libicu-dev \ | ||
libcurl4-openssl-dev \ | ||
curl \ | ||
git \ | ||
libpcre3-dev \ | ||
locales | ||
|
||
RUN docker-php-ext-configure pdo_mysql --with-pdo-mysql=mysqlnd | ||
RUN docker-php-ext-configure mysqli --with-mysqli=mysqlnd | ||
RUN docker-php-ext-install mcrypt pdo_mysql mysqli intl mbstring opcache | ||
|
||
# Reconfigure locales | ||
RUN locale-gen en_US en_US.UTF-8 sk_SK sk_SK.UTF-8 | ||
RUN dpkg-reconfigure -f noninteractive locales | ||
|
||
COPY app.ini /usr/local/etc/php/conf.d/app.ini | ||
COPY app.pool.conf /usr/local/etc/php/pool.d/app.pool.conf | ||
|
||
# Configure xdebug | ||
RUN pecl install xdebug | ||
RUN docker-php-ext-enable xdebug | ||
COPY ext-xdebug.ini /usr/local/etc/php/conf.d/docker-php-ext-xdebug.ini | ||
|
||
RUN usermod -u 1000 www-data | ||
|
||
CMD ["php-fpm"] | ||
|