Skip to content

Commit 278575f

Browse files
authored
install iconv
1 parent 9c238d8 commit 278575f

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

Dockerfile

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,7 @@ RUN apk info \
4949
opcache \
5050
pcntl \
5151
mbstring \
52+
iconv \
5253
&& pecl install \
5354
redis \
5455
imagick \
@@ -57,6 +58,10 @@ RUN apk info \
5758
imagick \
5859
&& apk del .build-deps
5960

61+
# fix iconv (see https://github.com/docker-library/php/issues/240#issuecomment-305038173)
62+
RUN apk add --no-cache --repository http://dl-cdn.alpinelinux.org/alpine/edge/community/
63+
ENV LD_PRELOAD /usr/lib/preloadable_libiconv.so php
64+
6065
# change default shell
6166
SHELL ["/bin/bash", "-c"]
6267

0 commit comments

Comments
 (0)