Skip to content

Commit a56b3d2

Browse files
committed
Add php extensions
1 parent 02c7d81 commit a56b3d2

File tree

1 file changed

+30
-0
lines changed

1 file changed

+30
-0
lines changed

Dockerfile

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,36 @@ RUN apk add --no-cache libstdc++ libgcc jq git curl unzip sshpass openssh-client
66
# Install Composer
77
RUN curl -sS https://getcomposer.org/installer | php -- --install-dir=/usr/local/bin --filename=composer --2.2
88

9+
# Install PHP extensions
10+
RUN apk add \
11+
bzip2-dev \
12+
libsodium-dev \
13+
libxml2-dev \
14+
libxslt-dev \
15+
linux-headers \
16+
yaml-dev
17+
18+
ENV CFLAGS="$CFLAGS -D_GNU_SOURCE"
19+
20+
RUN docker-php-ext-install \
21+
bz2 \
22+
calendar \
23+
exif \
24+
opcache \
25+
pcntl \
26+
shmop \
27+
soap \
28+
sockets \
29+
sodium \
30+
sysvsem \
31+
sysvshm \
32+
xsl
33+
34+
RUN apk add --virtual build-deps autoconf gcc make g++ zlib-dev \
35+
&& pecl channel-update pecl.php.net \
36+
&& pecl install yaml-2.2.3 && docker-php-ext-enable yaml \
37+
&& apk del build-deps
38+
939
COPY --from=node /usr/local/lib/node_modules /usr/local/lib/node_modules
1040
COPY --from=node /usr/local/include/node /usr/local/include/node
1141
COPY --from=node /usr/local/share/man/man1/node.1 /usr/local/share/man/man1/node.1

0 commit comments

Comments
 (0)