File tree Expand file tree Collapse file tree 2 files changed +6
-1
lines changed
Expand file tree Collapse file tree 2 files changed +6
-1
lines changed Original file line number Diff line number Diff line change @@ -17,9 +17,14 @@ RUN apk add --no-cache \
1717 file \
1818 gettext \
1919 git \
20+ gnu-libiconv \
2021 jq \
2122 ;
2223
24+ # install gnu-libiconv and set LD_PRELOAD env to make iconv work fully on Alpine image.
25+ # see https://github.com/docker-library/php/issues/240#issuecomment-763112749
26+ ENV LD_PRELOAD /usr/lib/preloadable_libiconv.so
27+
2328ARG APCU_VERSION=5.1.19
2429RUN set -eux; \
2530 apk add --no-cache --virtual .build-deps \
Original file line number Diff line number Diff line change @@ -32,7 +32,7 @@ if [ "$1" = 'php-fpm' ] || [ "$1" = 'php' ] || [ "$1" = 'bin/console' ]; then
3232 if grep -q ^DATABASE_URL= .env; then
3333 echo " Waiting for db to be ready..."
3434 ATTEMPTS_LEFT_TO_REACH_DATABASE=60
35- until [ $ATTEMPTS_LEFT_TO_REACH_DATABASE -eq 0 ] || DATABASE_ERROR=$( bin/console doctrine:query: sql " SELECT 1" 2>&1 ) ; do
35+ until [ $ATTEMPTS_LEFT_TO_REACH_DATABASE -eq 0 ] || DATABASE_ERROR=$( bin/console dbal:run- sql " SELECT 1" 2>&1 ) ; do
3636 if [ $? -eq 255 ]; then
3737 # If the Doctrine command exits with 255, an unrecoverable error occurred
3838 ATTEMPTS_LEFT_TO_REACH_DATABASE=0
You can’t perform that action at this time.
0 commit comments