forked from spayder/docker-php-fpm
-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathDockerfile
More file actions
40 lines (30 loc) · 1.13 KB
/
Copy pathDockerfile
File metadata and controls
40 lines (30 loc) · 1.13 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
FROM php:5.6-fpm
MAINTAINER Oleg Kopachovets <ok@procoders.tech>
#install laravel requirements and aditional extensions
RUN requirements="libmcrypt-dev g++ libicu-dev libmcrypt4 zlib1g-dev git libcurl4-openssl-dev libfreetype6-dev libjpeg62-turbo-dev libpng-dev" \
&& apt-get update && apt-get install -y $requirements \
&& docker-php-ext-install pdo_mysql \
&& docker-php-ext-install mysql \
&& docker-php-ext-install mysqli \
&& docker-php-ext-install mcrypt \
&& docker-php-ext-install mbstring \
&& docker-php-ext-install intl \
&& docker-php-ext-install json \
&& docker-php-ext-install zip \
&& docker-php-ext-install curl
#install composer globally
RUN curl -sSL https://getcomposer.org/installer | php \
&& mv composer.phar /usr/local/bin/composer
#replace default php-fpm config
RUN rm -v /usr/local/etc/php-fpm.conf
COPY config/php-fpm.conf /usr/local/etc/
#add custom php.ini
COPY config/php.ini /usr/local/etc/php/
# Setup Volume
VOLUME ["/var/www/html"]
#Set Workdir
WORKDIR /var/www/html
#Add entrypoint
COPY docker-entrypoint.sh /entrypoint.sh
ENTRYPOINT ["/entrypoint.sh"]
CMD ["php-fpm"]