File tree Expand file tree Collapse file tree 1 file changed +50
-0
lines changed
Expand file tree Collapse file tree 1 file changed +50
-0
lines changed Original file line number Diff line number Diff line change 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" ]
You can’t perform that action at this time.
0 commit comments