-
Notifications
You must be signed in to change notification settings - Fork 2k
Closed
Description
Dockerfile:
FROM php:7.2-rc-fpm-alpine
ENV ERR_STREAM="/tmp/php/stderr"
# add edge/community to get more recent software
RUN echo 'https://dl-cdn.alpinelinux.org/alpine/edge/main' >> /etc/apk/repositories \
&& echo 'https://dl-cdn.alpinelinux.org/alpine/edge/community' >> /etc/apk/repositories
# ensure we only use apk repositories over HTTPS
RUN sed -i 's|http://|https://|g' /etc/apk/repositories
# The user the app should run as
ENV APP_USER=app
# The home directory
ENV APP_DIR=/$APP_USER/
# Add custom user and setup home directory
RUN adduser -s /bin/true -u 1000 -D -h $APP_DIR $APP_USER \
&& chown "$APP_USER" "$APP_DIR" \
&& chmod 700 "$APP_DIR"
RUN sed -i "62i [[ ! -f \"config.m4\" && -f \"config0.m4\" ]] && mv config0.m4 config.m4" /usr/local/bin/docker-php-ext-configure \
&& apk add --no-cache postgresql-dev \
&& docker-php-ext-install json pdo pdo_pgsql ctype session openssl mbstring curl soap iconv \
&& rm -r /etc/php* \
&& mkdir /app/source /app/modules \
&& mv /usr/lib/php* /usr/lib/php \
&& mv /usr/lib/php/modules/* /app/modules/ \
&& rm -r /usr/lib/php \
&& mv /usr/local/sbin/php-fpm /usr/sbin/php-fpm \
&& mv /usr/local/bin/php /usr/bin/php
Log:
.... successful module installs ....
Libraries have been installed in:
/usr/src/php/ext/mbstring/modules
If you ever happen to want to link against installed libraries
in a given directory, LIBDIR, you must either use libtool, and
specify the full pathname of the library, or use the `-LLIBDIR'
flag during linking and do at least one of the following:
- add LIBDIR to the `LD_LIBRARY_PATH' environment variable
during execution
- add LIBDIR to the `LD_RUN_PATH' environment variable
during linking
- use the `-Wl,--rpath -Wl,LIBDIR' linker flag
See any operating system documentation about shared libraries for
more information, such as the ld(1) and ld.so(8) manual pages.
----------------------------------------------------------------------
Build complete.
Don't forget to run 'make test'.
Installing shared extensions: /usr/local/lib/php/extensions/no-debug-non-zts-20170718/
Installing header files: /usr/local/include/php/
warning: mbstring (mbstring.so) is already loaded!
find . -name \*.gcno -o -name \*.gcda | xargs rm -f
find . -name \*.lo -o -name \*.o | xargs rm -f
find . -name \*.la -o -name \*.a | xargs rm -f
find . -name \*.so | xargs rm -f
find . -name .libs -a -type d|xargs rm -rf
rm -f libphp.la modules/* libs/*
+ cd curl
+ [[ ! -f config.m4 -a -f config0.m4 ]]
+ phpize
Configuring for:
PHP Api Version: 20170718
Zend Module Api No: 20170718
Zend Extension Api No: 320170718
+ ./configure --build=x86_64-linux-musl
checking for grep that handles long lines and -e... /bin/grep
checking for egrep... /bin/grep -E
checking for a sed that does not truncate output... /bin/sed
checking for cc... cc
checking whether the C compiler works... yes
checking for C compiler default output file name... a.out
checking for suffix of executables...
checking whether we are cross compiling... no
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether cc accepts -g... yes
checking for cc option to accept ISO C89... none needed
checking how to run the C preprocessor... cc -E
checking for icc... no
checking for suncc... no
checking whether cc understands -c and -o together... yes
checking for system library directory... lib
checking if compiler supports -R... no
checking if compiler supports -Wl,-rpath,... yes
checking build system type... x86_64-pc-linux-musl
checking host system type... x86_64-pc-linux-musl
checking target system type... x86_64-pc-linux-musl
checking for PHP prefix... /usr/local
checking for PHP includes... -I/usr/local/include/php -I/usr/local/include/php/main -I/usr/local/include/php/TSRM -I/usr/local/include/php/Zend -I/usr/local/include/php/ext -I/usr/local/include/php/ext/date/lib
checking for PHP extension directory... /usr/local/lib/php/extensions/no-debug-non-zts-20170718
checking for PHP installed headers prefix... /usr/local/include/php
checking if debug is enabled... no
checking if zts is enabled... no
checking for re2c... re2c
checking for re2c version... 1.0.1 (ok)
checking for gawk... no
checking for nawk... no
checking for awk... awk
checking if awk is broken... no
checking for cURL support... yes, shared
checking for cURL in default path... not found
checking for cURL in multiarch path... not found
sh: please: out of range
configure: error: reinstall
./configure: return: line 5527: Illegal number: please
Metadata
Metadata
Assignees
Labels
No labels