This repository was archived by the owner on Dec 2, 2020. It is now read-only.
File tree Expand file tree Collapse file tree 1 file changed +6
-4
lines changed
Expand file tree Collapse file tree 1 file changed +6
-4
lines changed Original file line number Diff line number Diff line change 66# ###### Install and compile everything #######
77
88# Same AL version as Lambda execution environment AMI
9- FROM amazonlinux:2017 .03.1.20170812 as builder
9+ FROM amazonlinux:2018 .03.0.20190514 as builder
1010
1111# Set desired PHP Version
12- ARG php_version="7.3.3 "
12+ ARG php_version="7.3.6 "
1313
14- # Lock to 2017 .03 release (same as Lambda) and install compilation dependencies
15- RUN sed -i 's;^releasever.*;releasever=2017 .03;;' /etc/yum.conf && \
14+ # Lock to 2018 .03 release (same as Lambda) and install compilation dependencies
15+ RUN sed -i 's;^releasever.*;releasever=2018 .03;;' /etc/yum.conf && \
1616 yum clean all && \
1717 yum install -y autoconf \
1818 bison \
@@ -34,6 +34,7 @@ RUN curl -sL https://github.com/php/php-src/archive/php-${php_version}.tar.gz |
3434 cd php-src-php-${php_version} && \
3535 ./buildconf --force && \
3636 ./configure --prefix=/opt/php-7-bin/ --with-openssl --with-curl --with-zlib --without-pear --enable-bcmath --with-bz2 --enable-mbstring --with-mysqli && \
37+ make -j 5 && \
3738 make install && \
3839 /opt/php-7-bin/bin/php -v && \
3940 curl -sS https://getcomposer.org/installer | /opt/php-7-bin/bin/php -- --install-dir=/opt/php-7-bin/bin/ --filename=composer
@@ -43,6 +44,7 @@ RUN mkdir -p /lambda-php-runtime/bin && \
4344 cp /opt/php-7-bin/bin/php /lambda-php-runtime/bin/php
4445
4546COPY runtime/bootstrap /lambda-php-runtime/
47+ RUN chmod 0555 /lambda-php-runtime/bootstrap
4648
4749# Install Guzzle, prepare vendor files
4850RUN mkdir /lambda-php-vendor && \
You can’t perform that action at this time.
0 commit comments