Skip to content

Commit 1f14939

Browse files
committed
Simplify build process
The downside of this is cache-missing the entire extensions build phase once you add an entry to it
1 parent 70902d3 commit 1f14939

File tree

1 file changed

+14
-32
lines changed

1 file changed

+14
-32
lines changed

services/php/Dockerfile

Lines changed: 14 additions & 32 deletions
Original file line numberDiff line numberDiff line change
@@ -4,38 +4,20 @@ FROM php:7.1-fpm
44
RUN apt-get update && apt-get install -y \
55
libmcrypt-dev \
66
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 && \
7+
libssl-dev \
8+
libpq-dev \
9+
libbz2-dev
10+
11+
# extensions
12+
RUN docker-php-ext-install opcache && \
13+
docker-php-ext-install zip && \
14+
docker-php-ext-install bz2 && \
15+
docker-php-ext-install iconv && \
16+
docker-php-ext-install calendar && \
17+
docker-php-ext-install dom && \
18+
docker-php-ext-install mbstring && \
19+
docker-php-ext-install mcrypt && \
20+
docker-php-ext-install mysqli && \
3921
docker-php-ext-install pdo pdo_mysql
4022

4123
# mark volume/s as externally mounted

0 commit comments

Comments
 (0)