Skip to content

Commit

Permalink
add fpm-dev as dynamic container so the cache is not persistent
Browse files Browse the repository at this point in the history
  • Loading branch information
ivanbarlog committed Dec 14, 2017
1 parent 165186e commit 1b0e29d
Show file tree
Hide file tree
Showing 2 changed files with 25 additions and 2 deletions.
2 changes: 1 addition & 1 deletion infrastructure/docker-compose-dev.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ services:
restart: unless-stopped

fpm:
image: everlutionsk/fpm-dev:7.1.12
build: docker-images/fpm-dev

test:
image: everlutionsk/php-test
Expand Down
25 changes: 24 additions & 1 deletion infrastructure/docker-images/fpm-dev/Dockerfile
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"]

0 comments on commit 1b0e29d

Please sign in to comment.