Skip to content

Commit 56d3174

Browse files
author
Kevin Buchholz
committed
install iconv in the same add statement as other packages
1 parent f69cca2 commit 56d3174

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

Dockerfile

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,7 @@ COPY ./root/ /root/
3939
RUN find /root -name "*.sh" -exec chmod -v +x {} \;
4040

4141
RUN apk info \
42+
&& echo @iconv-fix http://dl-cdn.alpinelinux.org/alpine/v3.13/community >> /etc/apk/repositories \
4243
&& apk update \
4344
&& apk upgrade \
4445
&& apk add --no-cache --virtual .build-deps \
@@ -54,6 +55,7 @@ RUN apk info \
5455
libpng-dev \
5556
libxml2-dev \
5657
freetype-dev \
58+
gnu-libiconv@iconv-fix=1.15-r3 \
5759
bash \
5860
git \
5961
nodejs \
@@ -90,15 +92,16 @@ RUN apk info \
9092
&& rm -rf /tmp/* /var/cache/apk/*
9193

9294
# fix iconv (see https://github.com/docker-library/php/issues/240#issuecomment-876464325)
93-
RUN apk add gnu-libiconv=1.15-r3 --update-cache --repository http://dl-cdn.alpinelinux.org/alpine/v3.13/community/ --allow-untrusted
94-
ENV LD_PRELOAD /usr/lib/preloadable_libiconv.so
9595

9696

9797
# configure composer
9898
ENV COMPOSER_ALLOW_SUPERUSER=1 \
9999
COMPOSER_MEMORY_LIMIT=-1 \
100100
PATH="$PATH:/opt/app/vendor/bin:~/.composer/vendor/bin"
101101

102+
# fix iconv (see https://github.com/docker-library/php/issues/240#issuecomment-876464325)
103+
ENV LD_PRELOAD /usr/lib/preloadable_libiconv.so
104+
102105
# configure yarn
103106
RUN yarn config set strict-ssl false && \
104107
yarn global add cross-env

0 commit comments

Comments
 (0)