Skip to content

Commit ca6c7fe

Browse files
authored
Fix Dockerfile environment variable syntax
1 parent 313adab commit ca6c7fe

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

Dockerfile

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ RUN apk add \
2828
# sendrecvmsg.c:128:19: error: invalid application of 'sizeof' to incomplete type 'struct cmsgcred'
2929
#
3030
# see https://github.com/docker-library/php/issues/1245#issuecomment-1019957169
31-
ENV CFLAGS="$CFLAGS -D_GNU_SOURCE"
31+
ENV CFLAGS="${CFLAGS:-} -D_GNU_SOURCE"
3232

3333
RUN docker-php-ext-install \
3434
bz2 \
@@ -81,8 +81,8 @@ ENV LD_PRELOAD="/usr/lib/preloadable_libiconv.so php-fpm php"
8181
RUN php -r '$res = iconv("utf-8", "utf-8//IGNORE", "fooą");'
8282

8383
RUN php -v; php -m; php -i | grep ini
84-
ENV PHP_VERSION $PHP_VERSION
85-
ENV COMPOSER_VERSION $COMPOSER_VERSION
84+
ENV PHP_VERSION=$PHP_VERSION
85+
ENV COMPOSER_VERSION=$COMPOSER_VERSION
8686

8787
# add an info script
8888
WORKDIR /opt

0 commit comments

Comments
 (0)