Skip to content

Commit 3259828

Browse files
committed
Add PHP service
1 parent 0b06e13 commit 3259828

File tree

1 file changed

+50
-0
lines changed

1 file changed

+50
-0
lines changed

services/php/Dockerfile

Lines changed: 50 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,50 @@
1+
FROM php:7.1-fpm
2+
3+
# updates
4+
RUN apt-get update && apt-get install -y \
5+
libmcrypt-dev \
6+
libxml2-dev \
7+
libssl-dev
8+
9+
# opcache
10+
RUN docker-php-ext-install opcache
11+
12+
# zip
13+
RUN docker-php-ext-install zip
14+
15+
# bz2
16+
RUN apt-get install -y libbz2-dev
17+
RUN docker-php-ext-install bz2
18+
19+
# iconv
20+
RUN docker-php-ext-install iconv
21+
22+
# calendar
23+
RUN docker-php-ext-install calendar
24+
25+
# dom
26+
RUN docker-php-ext-install dom
27+
28+
# mbstring
29+
RUN docker-php-ext-install mbstring
30+
31+
# mcrypt
32+
RUN docker-php-ext-install mcrypt
33+
34+
# mysqli
35+
RUN docker-php-ext-install mysqli
36+
37+
# mysql
38+
RUN apt-get install -y libpq-dev && \
39+
docker-php-ext-install pdo pdo_mysql
40+
41+
# mark volume/s as externally mounted
42+
VOLUME ["/var/www"]
43+
44+
# starting point
45+
WORKDIR /var/www
46+
47+
# make web server listen to this port
48+
EXPOSE 9000
49+
50+
CMD ["php-fpm"]

0 commit comments

Comments
 (0)